diff options
author | Ryan <[email protected]> | 2024-07-03 18:35:54 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-03 18:35:54 +1000 |
commit | f8596b40a4bb15a1881138baa8b8787277e2e622 (patch) | |
tree | 551e145c341b2a7e9f8ee9f2573f4f1e8ebbfbe9 /quantum/pointing_device | |
parent | bc0c69570b8a8b1d9a754a280053e49a825b24d7 (diff) | |
download | qmk_firmware-f8596b40a4bb15a1881138baa8b8787277e2e622.tar.gz qmk_firmware-f8596b40a4bb15a1881138baa8b8787277e2e622.zip |
Normalise mouse keycodes (#23975)
Diffstat (limited to 'quantum/pointing_device')
-rw-r--r-- | quantum/pointing_device/pointing_device.c | 2 | ||||
-rw-r--r-- | quantum/pointing_device/pointing_device_auto_mouse.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/quantum/pointing_device/pointing_device.c b/quantum/pointing_device/pointing_device.c index 4682aceb14..74ce9108a9 100644 --- a/quantum/pointing_device/pointing_device.c +++ b/quantum/pointing_device/pointing_device.c @@ -498,7 +498,7 @@ __attribute__((weak)) report_mouse_t pointing_device_task_combined_user(report_m __attribute__((weak)) void pointing_device_keycode_handler(uint16_t keycode, bool pressed) { if IS_MOUSEKEY_BUTTON (keycode) { - local_mouse_report.buttons = pointing_device_handle_buttons(local_mouse_report.buttons, pressed, keycode - KC_MS_BTN1); + local_mouse_report.buttons = pointing_device_handle_buttons(local_mouse_report.buttons, pressed, keycode - QK_MOUSE_BUTTON_1); pointing_device_send(); } } diff --git a/quantum/pointing_device/pointing_device_auto_mouse.h b/quantum/pointing_device/pointing_device_auto_mouse.h index a596c065a3..2c0d4d1043 100644 --- a/quantum/pointing_device/pointing_device_auto_mouse.h +++ b/quantum/pointing_device/pointing_device_auto_mouse.h @@ -37,7 +37,7 @@ # define AUTO_MOUSE_TIME 650 #endif #ifndef AUTO_MOUSE_DELAY -# define AUTO_MOUSE_DELAY GET_TAPPING_TERM(KC_MS_BTN1, &(keyrecord_t){}) +# define AUTO_MOUSE_DELAY GET_TAPPING_TERM(QK_MOUSE_BUTTON_1, &(keyrecord_t){}) #endif #ifndef AUTO_MOUSE_DEBOUNCE # define AUTO_MOUSE_DEBOUNCE 25 |