X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Fusb_keycodes.h;h=61d6bf002997d223e1183d37d01d45a63ec81b34;hb=e9af482690152f1beedbbb915791eccd2d5c22d1;hp=04b398fa2a160beef5c8b7d274fc38cfe14daa07;hpb=dc79a8521946a3a2e5b86945b8043b87a8b8d78c;p=max%2Ftmk_keyboard.git diff --git a/common/usb_keycodes.h b/common/usb_keycodes.h index 04b398fa..61d6bf00 100644 --- a/common/usb_keycodes.h +++ b/common/usb_keycodes.h @@ -33,8 +33,9 @@ along with this program. If not, see . #define IS_MOUSEKEY_BUTTON(code) (KB_MS_BTN1 <= (code) && (code) <= KB_MS_BTN5) #define IS_MOUSEKEY_WHEEL(code) (KB_MS_WH_UP <= (code) && (code) <= KB_MS_WH_RIGHT) -#define MOD_BIT(code) (1<<((code) & 0x07)) -#define FN_BIT(code) (1<<((code) - KB_FN0)) +#define MOD_BIT(code) (1<<((code) & 0x07)) +#define FN_BIT(code) (1<<((code) - KB_FN0)) +#define FN_INDEX(code) ((code) - KB_FN0) /* Short names */