diff options
author | tmk <nobody@nowhere> | 2010-10-26 21:32:45 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-10-26 21:32:45 +0900 |
commit | 461e0d3d8c82cc78d29d3115af3c417bb51bb50f (patch) | |
tree | 844b28eed904f72aa18873f25de435379fa1bad3 /usb_keyboard.h | |
parent | 7a336b05ec2d1056fe2206ae218199c66e8980da (diff) |
ADD: keymap macro for human to read easier
ADD: controller.h for controller board definition(teensy)
ADD: debug toggle
Diffstat (limited to 'usb_keyboard.h')
-rw-r--r-- | usb_keyboard.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/usb_keyboard.h b/usb_keyboard.h index 2420745eee..691ef8b275 100644 --- a/usb_keyboard.h +++ b/usb_keyboard.h @@ -11,16 +11,18 @@ #define KEYBOARD_SIZE 8 #define KEYBOARD_BUFFER EP_DOUBLE_BUFFER -// TODO: move to usb_keycodes.h ? -// modifier bits -#define MOD_LCTRL (1<<0) -#define MOD_LSHIFT (1<<1) -#define MOD_LALT (1<<2) -#define MOD_LGUI (1<<3) -#define MOD_RCTRL (1<<4) -#define MOD_RSHIFT (1<<5) -#define MOD_RALT (1<<6) -#define MOD_RGUI (1<<7) +#define BIT_LCTRL (1<<0) +#define BIT_LSHIFT (1<<1) +#define BIT_LALT (1<<2) +#define BIT_LGUI (1<<3) +#define BIT_RCTRL (1<<4) +#define BIT_RSHIFT (1<<5) +#define BIT_RALT (1<<6) +#define BIT_RGUI (1<<7) +#define BIT_LCTL BIT_LCTRL +#define BIT_RCTL BIT_RCTRL +#define BIT_LSFT BIT_LSHIFT +#define BIT_RSFT BIT_RSHIFT // TODO: change variable name: usb_keyboard_ or usb_kb_ |