Browse Source

reform2 trackpad: remove superflous wheel coordinate check

mntmn 3 years ago
parent
commit
9ed12b47be
1 changed files with 0 additions and 4 deletions
  1. 0 4
      reform2-trackpad-fw/Mouse.c

+ 0 - 4
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