From 09f129662e41108fd86255c02623a38e07cbbb27 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 3 Oct 2023 14:33:36 +1100 Subject: Add scroll velocity + more input methods --- src/drivers/include/nvs.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/drivers/include/nvs.hpp') 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(); -- cgit v1.2.3