diff options
author | tmk <nobody@nowhere> | 2012-10-06 02:23:12 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-10-17 15:55:37 +0900 |
commit | 4ae979f6ef8dbf9e1d1f35be15322ad6d02e2958 (patch) | |
tree | 9f5132005c27ef04ae793b77d4699cb285479466 /common/usb_keycodes.h | |
parent | 93e33fb8f694c9685accd72ed0458a2cf3d3f04a (diff) | |
download | qmk_firmware-4ae979f6ef8dbf9e1d1f35be15322ad6d02e2958.tar.gz qmk_firmware-4ae979f6ef8dbf9e1d1f35be15322ad6d02e2958.zip |
Initial version of new code for layer switch is added.
Diffstat (limited to 'common/usb_keycodes.h')
-rw-r--r-- | common/usb_keycodes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/usb_keycodes.h b/common/usb_keycodes.h index 04b398fa2..61d6bf002 100644 --- a/common/usb_keycodes.h +++ b/common/usb_keycodes.h | |||
@@ -33,8 +33,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
33 | #define IS_MOUSEKEY_BUTTON(code) (KB_MS_BTN1 <= (code) && (code) <= KB_MS_BTN5) | 33 | #define IS_MOUSEKEY_BUTTON(code) (KB_MS_BTN1 <= (code) && (code) <= KB_MS_BTN5) |
34 | #define IS_MOUSEKEY_WHEEL(code) (KB_MS_WH_UP <= (code) && (code) <= KB_MS_WH_RIGHT) | 34 | #define IS_MOUSEKEY_WHEEL(code) (KB_MS_WH_UP <= (code) && (code) <= KB_MS_WH_RIGHT) |
35 | 35 | ||
36 | #define MOD_BIT(code) (1<<((code) & 0x07)) | 36 | #define MOD_BIT(code) (1<<((code) & 0x07)) |
37 | #define FN_BIT(code) (1<<((code) - KB_FN0)) | 37 | #define FN_BIT(code) (1<<((code) - KB_FN0)) |
38 | #define FN_INDEX(code) ((code) - KB_FN0) | ||
38 | 39 | ||
39 | 40 | ||
40 | /* Short names */ | 41 | /* Short names */ |