Workaround for recent changes to mouse keycodes (#12367)

master
Joel Challis 2021-03-24 19:38:35 +00:00 committed by GitHub
parent 299008be36
commit b7870ae78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -362,6 +362,7 @@
#define X_BRIGHTNESS_DOWN be #define X_BRIGHTNESS_DOWN be
/* Mouse Buttons (unallocated range in HID spec) */ /* Mouse Buttons (unallocated range in HID spec) */
#ifdef VIA_ENABLE
#define X_MS_UP f0 #define X_MS_UP f0
#define X_MS_DOWN f1 #define X_MS_DOWN f1
#define X_MS_LEFT f2 #define X_MS_LEFT f2
@ -371,6 +372,23 @@
#define X_MS_BTN3 f6 #define X_MS_BTN3 f6
#define X_MS_BTN4 f7 #define X_MS_BTN4 f7
#define X_MS_BTN5 f8 #define X_MS_BTN5 f8
#define X_MS_BTN6 f8
#define X_MS_BTN7 f8
#define X_MS_BTN8 f8
#else
#define X_MS_UP ed
#define X_MS_DOWN ee
#define X_MS_LEFT ef
#define X_MS_RIGHT f0
#define X_MS_BTN1 f1
#define X_MS_BTN2 f2
#define X_MS_BTN3 f3
#define X_MS_BTN4 f4
#define X_MS_BTN5 f5
#define X_MS_BTN6 f6
#define X_MS_BTN7 f7
#define X_MS_BTN8 f8
#endif
#define X_MS_WH_UP f9 #define X_MS_WH_UP f9
#define X_MS_WH_DOWN fa #define X_MS_WH_DOWN fa
#define X_MS_WH_LEFT fb #define X_MS_WH_LEFT fb