commit 9d78b250abe1e8e720eb3dd7d05bfa10a72118da parent c9bbd0f27e589efe257d0946f52cb8fa9e84edaa Author: mntmn <lukas@mntre.com> Date: Fri, 22 May 2020 13:48:32 +0200 trackball: remove 1.5x X multiplier Diffstat:
M | reform-trackball-fw/Mouse.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reform-trackball-fw/Mouse.c b/reform-trackball-fw/Mouse.c @@ -292,7 +292,7 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn MouseReport->Wheel = -ny; led_error(); } else { - MouseReport->X = 1.5*(float)(abs(nx)*nx); + MouseReport->X = abs(nx)*nx; MouseReport->Y = abs(ny)*ny; }