1
0
Fork 0

[Mouse] Add 32 buttons for mouse reports

Because why the fuck not
This commit is contained in:
Drashna Jael're 2024-11-12 08:06:17 -08:00
parent 45573eb441
commit 8e0560e4d3
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
4 changed files with 7 additions and 7 deletions

View file

@ -195,7 +195,7 @@ __attribute__((weak)) bool pointing_device_send(void) {
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
uint8_t buttons = local_mouse_report.buttons;
uint32_t buttons = local_mouse_report.buttons;
memset(&local_mouse_report, 0, sizeof(local_mouse_report));
local_mouse_report.buttons = buttons;
@ -278,7 +278,7 @@ __attribute__((weak)) bool pointing_device_task(void) {
#if defined(SPLIT_POINTING_ENABLE)
# if defined(POINTING_DEVICE_COMBINED)
static uint8_t old_buttons = 0;
static uint32_t old_buttons = 0;
local_mouse_report.buttons = old_buttons;
local_mouse_report = pointing_device_driver->get_report(local_mouse_report);
old_buttons = local_mouse_report.buttons;