12345678910111213141516171819202122232425262728293031 |
- #include "process_joystick.h"
- #include "joystick.h"
- bool process_joystick(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case QK_JOYSTICK ... QK_JOYSTICK_MAX:
- if (record->event.pressed) {
- register_joystick_button(keycode - QK_JOYSTICK);
- } else {
- unregister_joystick_button(keycode - QK_JOYSTICK);
- }
- return false;
- }
- return true;
- }
|