Normalise Joystick and Programmable Button keycodes (#18832)

This commit is contained in:
Ryan authored and GitHub committed 2022-10-24 15:50:33 +01:00
1 parent 64ca14feea
commit 6bbe8b6edd
12 files changed
+365 -196

No files matched your search

@@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "programmable_button.h"
bool process_programmable_button(uint16_t keycode, keyrecord_t *record) {
if (keycode >= PROGRAMMABLE_BUTTON_MIN && keycode <= PROGRAMMABLE_BUTTON_MAX) {
uint8_t button = keycode - PROGRAMMABLE_BUTTON_MIN + 1;
if (keycode >= QK_PROGRAMMABLE_BUTTON_MIN && keycode <= QK_PROGRAMMABLE_BUTTON_MAX) {
uint8_t button = keycode - QK_PROGRAMMABLE_BUTTON_MIN + 1;
if (record->event.pressed) {
programmable_button_register(button);
} else {