summaryrefslogtreecommitdiff
path: root/src/rotaryencoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rotaryencoder.h')
-rw-r--r--src/rotaryencoder.h20
1 files changed, 20 insertions, 0 deletions
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 <cstdint>
+
+// 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 };
+};