X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fkeycode.h;h=534f52d54f8f92528463bcaabfb8c74c95101713;hb=12e5a3a13eb86852ad58c131e28ba29c5f09bb2d;hp=acbe5c320fb1acbbe24cc640eb25275a37e1165d;hpb=698c957cad7c0b9e89ee474dee463a2fcf274352;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/common/keycode.h b/tmk_core/common/keycode.h index acbe5c32..534f52d5 100644 --- a/tmk_core/common/keycode.h +++ b/tmk_core/common/keycode.h @@ -1,5 +1,5 @@ /* -Copyright 2011,2012 Jun Wako +Copyright 2011,2012,2020 Jun Wako This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -38,7 +38,7 @@ along with this program. If not, see . #define IS_SPECIAL(code) ((0xA5 <= (code) && (code) <= 0xDF) || (0xE8 <= (code) && (code) <= 0xFF)) #define IS_SYSTEM(code) (KC_PWR <= (code) && (code) <= KC_WAKE) -#define IS_CONSUMER(code) (KC_MUTE <= (code) && (code) <= KC_WFAV) +#define IS_CONSUMER(code) (KC_MUTE <= (code) && (code) <= KC_BRIGHTNESS_DEC) #define IS_FN(code) (KC_FN0 <= (code) && (code) <= KC_FN31) #define IS_MOUSEKEY(code) (KC_MS_UP <= (code) && (code) <= KC_MS_ACCEL2) #define IS_MOUSEKEY_MOVE(code) (KC_MS_UP <= (code) && (code) <= KC_MS_RIGHT) @@ -174,6 +174,8 @@ along with this program. If not, see . #define KC_WSTP KC_WWW_STOP #define KC_WREF KC_WWW_REFRESH #define KC_WFAV KC_WWW_FAVORITES +#define KC_BRTI KC_BRIGHTNESS_INC +#define KC_BRTD KC_BRIGHTNESS_DEC /* Jump to bootloader */ #define KC_BTLD KC_BOOTLOADER /* Transparent */ @@ -438,7 +440,9 @@ enum internal_special_keycodes { KC_WWW_FORWARD, KC_WWW_STOP, KC_WWW_REFRESH, - KC_WWW_FAVORITES, /* 0xBC */ + KC_WWW_FAVORITES, + KC_BRIGHTNESS_INC, + KC_BRIGHTNESS_DEC, /* 0xBE */ /* Jump to bootloader */ KC_BOOTLOADER = 0xBF,