From d12498504c279a0a85bbfb024f7903e34dbe07db Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 21 Feb 2025 07:27:00 +0100 Subject: broken img calc; change dir struct --- src/rotaryencoder.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/rotaryencoder.h (limited to 'src/rotaryencoder.h') diff --git a/src/rotaryencoder.h b/src/rotaryencoder.h new file mode 100644 index 0000000..c0c39d8 --- /dev/null +++ b/src/rotaryencoder.h @@ -0,0 +1,20 @@ +#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 }; +}; -- cgit v1.2.3-70-g09d2