mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-08-13 17:33:23 +01:00
Add support for large Mouse Reports (#16371)
Co-authored-by: Sergey Vlasov <sigprof@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
co-authored by
Sergey Vlasov
Ryan
parent
84944df6a6
commit
0ab51ee29d
@@ -93,6 +93,11 @@ void host_mouse_send(report_mouse_t *report) {
|
||||
if (!driver) return;
|
||||
#ifdef MOUSE_SHARED_EP
|
||||
report->report_id = REPORT_ID_MOUSE;
|
||||
#endif
|
||||
#ifdef MOUSE_EXTENDED_REPORT
|
||||
// clip and copy to Boot protocol XY
|
||||
report->boot_x = (report->x > 127) ? 127 : ((report->x < -127) ? -127 : report->x);
|
||||
report->boot_y = (report->y > 127) ? 127 : ((report->y < -127) ? -127 : report->y);
|
||||
#endif
|
||||
(*driver->send_mouse)(report);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user