reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

commit 8faecb27f62c3aadd2c8c46d01c21ae75ac78a8a
parent 4ee22fdf00eab90bb110c623eb0813b15d81daaa
Author: mntmn <lukas@mntmn.com>
Date:   Tue, 29 Oct 2019 15:17:28 +0100

trackball speed tweak

Diffstat:
Mreform-trackball-fw/Mouse.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/reform-trackball-fw/Mouse.c b/reform-trackball-fw/Mouse.c @@ -284,9 +284,6 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn if (!(PIND&(1<<2))) { MouseReport->Button |= 1; } - //if (!(PIND&(1))) { - // MouseReport->Button |= 8; - //} MouseReport->Wheel = 0; @@ -295,7 +292,7 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn MouseReport->Wheel = -ny; led_error(); } else { - MouseReport->X = nx*nx*nx; + MouseReport->X = 1.5*(float)(abs(nx)*nx); MouseReport->Y = abs(ny)*ny; }