summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorxyzz <1065521+xyzz@users.noreply.github.com>2021-03-14 21:19:01 -0400
committerGitHub <noreply@github.com>2021-03-15 12:19:01 +1100
commit0779c34db8ba0bf7141712377b1db467394f940f (patch)
tree00f2239bff1bf71d300e1a65cd6ffd468040ff01 /tmk_core
parent9e1d04fea77c4da64248e7870b915939a768c5c0 (diff)
downloadqmk_firmware-0779c34db8ba0bf7141712377b1db467394f940f.tar.gz
qmk_firmware-0779c34db8ba0bf7141712377b1db467394f940f.zip
Fix keycode mappings for via and ensure they don't change within protocol (#12130)
* Fix keycode mappings for via and ensure they don't change within protocol * Update keycodes * Fix broken keyboards * added the missing keycodes found in via * Remove invalid keycodes Co-authored-by: David Hoelscher <infinityis@users.noreply.github.com>
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/keycode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tmk_core/common/keycode.h b/tmk_core/common/keycode.h
index efad92b235..a39a33be21 100644
--- a/tmk_core/common/keycode.h
+++ b/tmk_core/common/keycode.h
@@ -524,7 +524,11 @@ enum internal_special_keycodes {
enum mouse_keys {
/* Mouse Buttons */
+#ifdef VIA_ENABLE
+ KC_MS_UP = 0xF0,
+#else
KC_MS_UP = 0xED,
+#endif
KC_MS_DOWN,
KC_MS_LEFT,
KC_MS_RIGHT, // 0xF0
@@ -533,9 +537,15 @@ enum mouse_keys {
KC_MS_BTN3,
KC_MS_BTN4,
KC_MS_BTN5,
+#ifdef VIA_ENABLE
+ KC_MS_BTN6 = KC_MS_BTN5,
+ KC_MS_BTN7 = KC_MS_BTN5,
+ KC_MS_BTN8 = KC_MS_BTN5,
+#else
KC_MS_BTN6,
KC_MS_BTN7,
KC_MS_BTN8,
+#endif
/* Mouse Wheel */
KC_MS_WH_UP,