diff options
| author | tmk <nobody@nowhere> | 2013-01-27 15:57:07 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-01-27 15:57:07 +0900 |
| commit | 66d5dd284271d85da4c161529e12526b50b0f71d (patch) | |
| tree | 767805096327316bf5c55e768e1aed8f5da7162d /common/keycode.h | |
| parent | 585e00eebe7b772ab0754e27e1afb8427facfc44 (diff) | |
| download | qmk_firmware-66d5dd284271d85da4c161529e12526b50b0f71d.tar.gz qmk_firmware-66d5dd284271d85da4c161529e12526b50b0f71d.zip | |
Fix keycodes. It has 32 Fn keys now.
Diffstat (limited to 'common/keycode.h')
| -rw-r--r-- | common/keycode.h | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/common/keycode.h b/common/keycode.h index 2eec2af85..cdd1e9758 100644 --- a/common/keycode.h +++ b/common/keycode.h | |||
| @@ -44,7 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 44 | #define FN_BIT(code) (1<<FN_INDEX(code)) | 44 | #define FN_BIT(code) (1<<FN_INDEX(code)) |
| 45 | #define FN_INDEX(code) ((code) - KC_FN0) | 45 | #define FN_INDEX(code) ((code) - KC_FN0) |
| 46 | #define FN_MIN KC_FN0 | 46 | #define FN_MIN KC_FN0 |
| 47 | #define FN_MAX KC_FN7 | 47 | #define FN_MAX KC_FN31 |
| 48 | 48 | ||
| 49 | 49 | ||
| 50 | /* | 50 | /* |
| @@ -390,11 +390,10 @@ enum internal_special_keycodes { | |||
| 390 | /* System Control */ | 390 | /* System Control */ |
| 391 | KC_SYSTEM_POWER = 0xA5, | 391 | KC_SYSTEM_POWER = 0xA5, |
| 392 | KC_SYSTEM_SLEEP, | 392 | KC_SYSTEM_SLEEP, |
| 393 | KC_SYSTEM_WAKE, /* 0xA7 */ | 393 | KC_SYSTEM_WAKE, |
| 394 | /* 0xA8-AF */ | ||
| 395 | 394 | ||
| 396 | /* Consumer Page */ | 395 | /* Consumer Page */ |
| 397 | KC_AUDIO_MUTE = 0xB0, | 396 | KC_AUDIO_MUTE, |
| 398 | KC_AUDIO_VOL_UP, | 397 | KC_AUDIO_VOL_UP, |
| 399 | KC_AUDIO_VOL_DOWN, | 398 | KC_AUDIO_VOL_DOWN, |
| 400 | KC_MEDIA_NEXT_TRACK, | 399 | KC_MEDIA_NEXT_TRACK, |
| @@ -410,21 +409,47 @@ enum internal_special_keycodes { | |||
| 410 | KC_WWW_BACK, | 409 | KC_WWW_BACK, |
| 411 | KC_WWW_FORWARD, | 410 | KC_WWW_FORWARD, |
| 412 | KC_WWW_STOP, | 411 | KC_WWW_STOP, |
| 413 | KC_WWW_REFRESH, /* 0xC0 */ | 412 | KC_WWW_REFRESH, |
| 414 | KC_WWW_FAVORITES, /* 0xC1 */ | 413 | KC_WWW_FAVORITES, /* 0xB9 */ |
| 415 | /* 0xC2-DF vacant for future use */ | ||
| 416 | |||
| 417 | /* 0xE0-E7 for Modifiers. DO NOT USE. */ | ||
| 418 | 414 | ||
| 419 | /* Layer Switching */ | 415 | /* Layer Switching */ |
| 420 | KC_FN0 = 0xE8, | 416 | KC_FN0 = 0xC0, |
| 421 | KC_FN1, | 417 | KC_FN1, |
| 422 | KC_FN2, | 418 | KC_FN2, |
| 423 | KC_FN3, | 419 | KC_FN3, |
| 424 | KC_FN4, | 420 | KC_FN4, |
| 425 | KC_FN5, | 421 | KC_FN5, |
| 426 | KC_FN6, | 422 | KC_FN6, |
| 427 | KC_FN7, /* 0xEF */ | 423 | KC_FN7, |
| 424 | KC_FN8, | ||
| 425 | KC_FN9, | ||
| 426 | KC_FN10, | ||
| 427 | KC_FN11, | ||
| 428 | KC_FN12, | ||
| 429 | KC_FN13, | ||
| 430 | KC_FN14, | ||
| 431 | KC_FN15, | ||
| 432 | |||
| 433 | KC_FN16 = 0xD0, | ||
| 434 | KC_FN17, | ||
| 435 | KC_FN18, | ||
| 436 | KC_FN19, | ||
| 437 | KC_FN20, | ||
| 438 | KC_FN21, | ||
| 439 | KC_FN22, | ||
| 440 | KC_FN23, | ||
| 441 | KC_FN24, | ||
| 442 | KC_FN25, | ||
| 443 | KC_FN26, | ||
| 444 | KC_FN27, | ||
| 445 | KC_FN28, | ||
| 446 | KC_FN29, | ||
| 447 | KC_FN30, | ||
| 448 | KC_FN31, /* 0xDF */ | ||
| 449 | |||
| 450 | /**************************************/ | ||
| 451 | /* 0xE0-E7 for Modifiers. DO NOT USE. */ | ||
| 452 | /**************************************/ | ||
| 428 | 453 | ||
| 429 | /* Mousekey */ | 454 | /* Mousekey */ |
| 430 | KC_MS_UP = 0xF0, | 455 | KC_MS_UP = 0xF0, |
