summaryrefslogtreecommitdiff
path: root/src/drivers/touchwheel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/touchwheel.cpp')
-rw-r--r--src/drivers/touchwheel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp
index 576b6dad..84d4d67c 100644
--- a/src/drivers/touchwheel.cpp
+++ b/src/drivers/touchwheel.cpp
@@ -105,8 +105,9 @@ void TouchWheel::Update() {
}
if (status & 0b1) {
// Key detect. Note that the touchwheel keys also trigger this.
- // TODO(daniel): Do something with this.
- // bool centre_key = ReadRegister(Register::KEY_STATUS_A) & 0b1000;
+ uint8_t reg = ReadRegister(Register::KEY_STATUS_A);
+ data_.is_button_touched = reg & 0b1000;
+ data_.is_wheel_touched = reg & 0b111;
}
}