From e4d5fc380b7e516b57ee4082653b1fad6d5f9afe Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Thu, 27 Jan 2022 02:56:13 -0800 Subject: [PATCH 1/2] Move mousekey keycodes into newly freed up keycode block The reason for this move is because ACTION LAYER reserves 0xE0-0xFF for internal usage. Namely, for other layer functions. This means that LT is limited to 0x00-0xDF keycodes, and effectively blocks mousekeys from being used. By moving the mousekeys, this allows them to be used as part of LT. --- quantum/keycode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/keycode.h b/quantum/keycode.h index 3c80a386d18b..cf87cff6fad4 100644 --- a/quantum/keycode.h +++ b/quantum/keycode.h @@ -510,11 +510,11 @@ enum mouse_keys { #ifdef VIA_ENABLE KC_MS_UP = 0xF0, #else - KC_MS_UP = 0xED, + KC_MS_UP = 0xCD, #endif KC_MS_DOWN, KC_MS_LEFT, - KC_MS_RIGHT, // 0xF0 + KC_MS_RIGHT, KC_MS_BTN1, KC_MS_BTN2, KC_MS_BTN3, From 21a7c4de977ea254c0829792fdc36dfb9bb0ca06 Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Thu, 3 Feb 2022 22:05:16 -0800 Subject: [PATCH 2/2] fix comment --- quantum/keycode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/keycode.h b/quantum/keycode.h index cf87cff6fad4..c6c3d3679920 100644 --- a/quantum/keycode.h +++ b/quantum/keycode.h @@ -539,7 +539,7 @@ enum mouse_keys { /* Acceleration */ KC_MS_ACCEL0, KC_MS_ACCEL1, - KC_MS_ACCEL2 // 0xFF + KC_MS_ACCEL2 // 0xDF, or 0xFF if via enabled }; #include "keycode_legacy.h"