diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-13 10:31:48 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-13 10:31:48 +1100 |
| commit | 26ae027d6721510e4b4a8107e95acc57efaaf2c6 (patch) | |
| tree | 50bec1d5581f2c8f6bb18e42013e180b266a7bca /src/drivers/include | |
| parent | 0426d245c8d863f18babdfbaf21c8673b0746feb (diff) | |
| download | tangara-fw-26ae027d6721510e4b4a8107e95acc57efaaf2c6.tar.gz | |
Sensitivity value now between 0 and 255
Diffstat (limited to 'src/drivers/include')
| -rw-r--r-- | src/drivers/include/relative_wheel.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drivers/include/relative_wheel.hpp b/src/drivers/include/relative_wheel.hpp index a44e3598..e1106143 100644 --- a/src/drivers/include/relative_wheel.hpp +++ b/src/drivers/include/relative_wheel.hpp @@ -25,8 +25,8 @@ class RelativeWheel { auto Update() -> void; auto SetEnabled(bool) -> void; - auto SetThreshold(int) -> void; - auto GetThreshold() -> int; + auto SetSensitivity(uint8_t) -> void; + auto GetSensitivity() -> uint8_t; auto is_clicking() const -> bool; auto ticks() const -> std::int_fast16_t; @@ -39,7 +39,8 @@ class RelativeWheel { TouchWheel& touch_; bool is_enabled_; - int threshold_; + uint8_t sensitivity_; + uint8_t threshold_; bool is_clicking_; bool was_clicking_; |
