diff options
author | tmk <nobody@nowhere> | 2011-09-17 22:39:50 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2011-09-17 23:53:18 +0900 |
commit | e67c988824f5ec0c965beb412f8ee5953dfd3c8c (patch) | |
tree | 190543f5bddfd31a326234aad91a0a995e55863a /keyboard.c | |
parent | b703de7b298f8463bf4654fa3730ba1958a7fa9e (diff) |
Added Bulegiga iWRAP support into HHKB.(Bluetooth)
Diffstat (limited to 'keyboard.c')
-rw-r--r-- | keyboard.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/keyboard.c b/keyboard.c index 9bba409f1d..5c2643c951 100644 --- a/keyboard.c +++ b/keyboard.c @@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #ifdef MOUSEKEY_ENABLE #include "mousekey.h" #endif -#ifdef USB_EXTRA_ENABLE +#ifdef EXTRAKEY_ENABLE #include <util/delay.h> #endif @@ -47,7 +47,7 @@ void keyboard_init(void) void keyboard_proc(void) { uint8_t fn_bits = 0; -#ifdef USB_EXTRA_ENABLE +#ifdef EXTRAKEY_ENABLE uint16_t consumer_code = 0; #endif @@ -82,7 +82,8 @@ void keyboard_proc(void) } else if (IS_FN(code)) { fn_bits |= FN_BIT(code); } -#ifdef USB_EXTRA_ENABLE +// TODO: use table or something +#ifdef EXTRAKEY_ENABLE // System Control else if (code == KB_SYSTEM_POWER) { #ifdef HOST_PJRC @@ -170,7 +171,7 @@ void keyboard_proc(void) // TODO: should send only when changed from last report if (matrix_is_modified()) { host_send_keyboard_report(); -#ifdef USB_EXTRA_ENABLE +#ifdef EXTRAKEY_ENABLE host_consumer_send(consumer_code); #endif #ifdef DEBUG_LED |