commit 9ed12b47be021dafda41b1a9cc048a971330964b
parent 893bb6cefa9c2b5b1813c2c38b974ec7a42f7c17
Author: mntmn <lukas@mntmn.com>
Date: Sun, 26 Jul 2020 17:12:27 +0200
reform2 trackpad: remove superflous wheel coordinate check
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/reform2-trackpad-fw/Mouse.c b/reform2-trackpad-fw/Mouse.c
@@ -297,12 +297,8 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn
// touchdown because they often have skips
if (touched_time > 4) {
if (wheeling) {
- if (dy>127) dy = 127;
- if (dy<-127) dy = -127;
-
dy/=5;
if (dy>0 && dy<1) dy=1;
-
MouseReport->Wheel = -dy;
} else {
// normal movement