diff options
| author | Joel Challis <git@zvecr.com> | 2021-03-24 19:38:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 19:38:35 +0000 |
| commit | b7870ae78cadf9a77316e0c004e8db0cbbba581e (patch) | |
| tree | b61a1020aa6e69e22840f5f0cb42bc8fce946780 /quantum/send_string_keycodes.h | |
| parent | 299008be36076343edadb7a36bf2fff820425ad1 (diff) | |
| download | qmk_firmware-b7870ae78cadf9a77316e0c004e8db0cbbba581e.tar.gz qmk_firmware-b7870ae78cadf9a77316e0c004e8db0cbbba581e.zip | |
Workaround for recent changes to mouse keycodes (#12367)
Diffstat (limited to 'quantum/send_string_keycodes.h')
| -rw-r--r-- | quantum/send_string_keycodes.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/quantum/send_string_keycodes.h b/quantum/send_string_keycodes.h index 1e8a8e9ff..7017e03d5 100644 --- a/quantum/send_string_keycodes.h +++ b/quantum/send_string_keycodes.h | |||
| @@ -362,6 +362,7 @@ | |||
| 362 | #define X_BRIGHTNESS_DOWN be | 362 | #define X_BRIGHTNESS_DOWN be |
| 363 | 363 | ||
| 364 | /* Mouse Buttons (unallocated range in HID spec) */ | 364 | /* Mouse Buttons (unallocated range in HID spec) */ |
| 365 | #ifdef VIA_ENABLE | ||
| 365 | #define X_MS_UP f0 | 366 | #define X_MS_UP f0 |
| 366 | #define X_MS_DOWN f1 | 367 | #define X_MS_DOWN f1 |
| 367 | #define X_MS_LEFT f2 | 368 | #define X_MS_LEFT f2 |
| @@ -371,6 +372,23 @@ | |||
| 371 | #define X_MS_BTN3 f6 | 372 | #define X_MS_BTN3 f6 |
| 372 | #define X_MS_BTN4 f7 | 373 | #define X_MS_BTN4 f7 |
| 373 | #define X_MS_BTN5 f8 | 374 | #define X_MS_BTN5 f8 |
| 375 | #define X_MS_BTN6 f8 | ||
| 376 | #define X_MS_BTN7 f8 | ||
| 377 | #define X_MS_BTN8 f8 | ||
| 378 | #else | ||
| 379 | #define X_MS_UP ed | ||
| 380 | #define X_MS_DOWN ee | ||
| 381 | #define X_MS_LEFT ef | ||
| 382 | #define X_MS_RIGHT f0 | ||
| 383 | #define X_MS_BTN1 f1 | ||
| 384 | #define X_MS_BTN2 f2 | ||
| 385 | #define X_MS_BTN3 f3 | ||
| 386 | #define X_MS_BTN4 f4 | ||
| 387 | #define X_MS_BTN5 f5 | ||
| 388 | #define X_MS_BTN6 f6 | ||
| 389 | #define X_MS_BTN7 f7 | ||
| 390 | #define X_MS_BTN8 f8 | ||
| 391 | #endif | ||
| 374 | #define X_MS_WH_UP f9 | 392 | #define X_MS_WH_UP f9 |
| 375 | #define X_MS_WH_DOWN fa | 393 | #define X_MS_WH_DOWN fa |
| 376 | #define X_MS_WH_LEFT fb | 394 | #define X_MS_WH_LEFT fb |
