diff options
Diffstat (limited to 'rotaryencoder.h')
| -rw-r--r-- | rotaryencoder.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/rotaryencoder.h b/rotaryencoder.h index f2f9b76..c0c39d8 100644 --- a/rotaryencoder.h +++ b/rotaryencoder.h @@ -2,11 +2,19 @@ #include <cstdint> -class rotaryencoder +// TODO: delete singleton functionality +class RotaryEncoder final { public: - rotaryencoder(); + RotaryEncoder(); + ~RotaryEncoder(); public: - int64_t position() const; + static RotaryEncoder* instance(); + +public: + int32_t position() const; + +private: + static inline RotaryEncoder* m_self { nullptr }; }; |
