summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_joystick.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-11-05 10:30:09 +0000
committerGitHub <noreply@github.com>2022-11-05 10:30:09 +0000
commita69ab05dd687cb9aa38e0c125e4f64956c7da6c7 (patch)
tree3733805ea012b5bc6ae7dc78dfed9f0f4d942d33 /quantum/process_keycode/process_joystick.c
parenta070c4c50134cf274a674ee73227289fde81b8ed (diff)
Initial DD keycode migration (#18643)
* Initial DD keycode migration * Sort magic keycodes
Diffstat (limited to 'quantum/process_keycode/process_joystick.c')
-rw-r--r--quantum/process_keycode/process_joystick.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_joystick.c b/quantum/process_keycode/process_joystick.c
index c4c6fb59a8..43067b81db 100644
--- a/quantum/process_keycode/process_joystick.c
+++ b/quantum/process_keycode/process_joystick.c
@@ -19,11 +19,11 @@
bool process_joystick(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
- case QK_JOYSTICK_BUTTON_MIN ... QK_JOYSTICK_BUTTON_MAX:
+ case QK_JOYSTICK ... QK_JOYSTICK_MAX:
if (record->event.pressed) {
- register_joystick_button(keycode - QK_JOYSTICK_BUTTON_MIN);
+ register_joystick_button(keycode - QK_JOYSTICK);
} else {
- unregister_joystick_button(keycode - QK_JOYSTICK_BUTTON_MIN);
+ unregister_joystick_button(keycode - QK_JOYSTICK);
}
return false;
}