diff options
| author | Ryan <fauxpark@gmail.com> | 2022-10-25 01:50:33 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-24 15:50:33 +0100 |
| commit | 6bbe8b6eddc56d43f4db07c665bf1791ea2ab871 (patch) | |
| tree | c19abffc806d190fcb89b56bc624d7b42cc8939e /quantum/process_keycode/process_programmable_button.c | |
| parent | 64ca14feea586442516a2ec50d7335445f5f08f6 (diff) | |
Normalise Joystick and Programmable Button keycodes (#18832)
Diffstat (limited to 'quantum/process_keycode/process_programmable_button.c')
| -rw-r--r-- | quantum/process_keycode/process_programmable_button.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_programmable_button.c b/quantum/process_keycode/process_programmable_button.c index 6379698848..d6a14e120c 100644 --- a/quantum/process_keycode/process_programmable_button.c +++ b/quantum/process_keycode/process_programmable_button.c | |||
| @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 19 | #include "programmable_button.h" | 19 | #include "programmable_button.h" |
| 20 | 20 | ||
| 21 | bool process_programmable_button(uint16_t keycode, keyrecord_t *record) { | 21 | bool process_programmable_button(uint16_t keycode, keyrecord_t *record) { |
| 22 | if (keycode >= PROGRAMMABLE_BUTTON_MIN && keycode <= PROGRAMMABLE_BUTTON_MAX) { | 22 | if (keycode >= QK_PROGRAMMABLE_BUTTON_MIN && keycode <= QK_PROGRAMMABLE_BUTTON_MAX) { |
| 23 | uint8_t button = keycode - PROGRAMMABLE_BUTTON_MIN + 1; | 23 | uint8_t button = keycode - QK_PROGRAMMABLE_BUTTON_MIN + 1; |
| 24 | if (record->event.pressed) { | 24 | if (record->event.pressed) { |
| 25 | programmable_button_register(button); | 25 | programmable_button_register(button); |
| 26 | } else { | 26 | } else { |
