summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-10-03 14:33:36 +1100
committerjacqueline <me@jacqueline.id.au>2023-10-03 14:33:36 +1100
commit09f129662e41108fd86255c02623a38e07cbbb27 (patch)
tree2bfbfbcd0f3c509e1eae1a11016e6f7c0cb37206 /src/drivers/include
parent7d5536e2abca61f503ed68521603bd30700a7e5e (diff)
downloadtangara-fw-09f129662e41108fd86255c02623a38e07cbbb27.tar.gz
Add scroll velocity + more input methods
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/nvs.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/include/nvs.hpp b/src/drivers/include/nvs.hpp
index 3e37c49e..46a3d154 100644
--- a/src/drivers/include/nvs.hpp
+++ b/src/drivers/include/nvs.hpp
@@ -44,6 +44,16 @@ class NvsStorage {
auto HasShownOnboarding() -> bool;
auto HasShownOnboarding(bool) -> bool;
+ enum class InputModes : uint8_t {
+ kButtonsOnly = 0,
+ kButtonsWithWheel = 1,
+ kDirectionalWheel = 2,
+ kRotatingWheel = 3,
+ };
+
+ auto PrimaryInput() -> InputModes;
+ auto PrimaryInput(InputModes) -> bool;
+
explicit NvsStorage(nvs_handle_t);
~NvsStorage();