summaryrefslogtreecommitdiff
path: root/src/drivers/include/touchwheel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/include/touchwheel.hpp')
-rw-r--r--src/drivers/include/touchwheel.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/include/touchwheel.hpp b/src/drivers/include/touchwheel.hpp
index 9d002156..18ace2b4 100644
--- a/src/drivers/include/touchwheel.hpp
+++ b/src/drivers/include/touchwheel.hpp
@@ -24,6 +24,10 @@ struct TouchWheelData {
class TouchWheel {
public:
+ static auto isAngleWithin(int16_t wheel_angle,
+ int16_t target_angle,
+ int threshold) -> bool;
+
static auto Create() -> TouchWheel* { return new TouchWheel(); }
TouchWheel();
~TouchWheel();