#pragma once #include // TODO: delete singleton functionality class RotaryEncoder final { public: RotaryEncoder(); ~RotaryEncoder(); public: static RotaryEncoder* instance(); public: int32_t position() const; private: static inline RotaryEncoder* m_self { nullptr }; };