mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-02 16:05:09 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
1b23c1c9dd
@ -166,11 +166,9 @@ __attribute__((weak)) void pointing_device_send(void) {
|
|||||||
host_mouse_send(&local_mouse_report);
|
host_mouse_send(&local_mouse_report);
|
||||||
}
|
}
|
||||||
// send it and 0 it out except for buttons, so those stay until they are explicity over-ridden using update_pointing_device
|
// send it and 0 it out except for buttons, so those stay until they are explicity over-ridden using update_pointing_device
|
||||||
local_mouse_report.x = 0;
|
uint8_t buttons = local_mouse_report.buttons;
|
||||||
local_mouse_report.y = 0;
|
memset(&local_mouse_report, 0, sizeof(local_mouse_report));
|
||||||
local_mouse_report.v = 0;
|
local_mouse_report.buttons = buttons;
|
||||||
local_mouse_report.h = 0;
|
|
||||||
|
|
||||||
memcpy(&old_report, &local_mouse_report, sizeof(local_mouse_report));
|
memcpy(&old_report, &local_mouse_report, sizeof(local_mouse_report));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user