From 3df4cc9e3de6af480d1ff78376a7d811c9270561 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 3 Oct 2023 09:36:28 +1100 Subject: Make accessors in RelativeWheel const --- src/drivers/include/relative_wheel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/include') diff --git a/src/drivers/include/relative_wheel.hpp b/src/drivers/include/relative_wheel.hpp index b5532a4c..88077d08 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 is_clicking() -> bool; - auto ticks() -> std::int_fast16_t; + auto is_clicking() const -> bool; + auto ticks() const -> std::int_fast16_t; // Not copyable or movable. RelativeWheel(const RelativeWheel&) = delete; -- cgit v1.2.3