aboutsummaryrefslogtreecommitdiff
path: root/adb_usb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-09-17 22:39:50 +0900
committertmk <nobody@nowhere>2011-09-17 23:53:18 +0900
commite67c988824f5ec0c965beb412f8ee5953dfd3c8c (patch)
tree190543f5bddfd31a326234aad91a0a995e55863a /adb_usb
parentb703de7b298f8463bf4654fa3730ba1958a7fa9e (diff)
downloadqmk_firmware-e67c988824f5ec0c965beb412f8ee5953dfd3c8c.tar.gz
qmk_firmware-e67c988824f5ec0c965beb412f8ee5953dfd3c8c.zip
Added Bulegiga iWRAP support into HHKB.(Bluetooth)
Diffstat (limited to 'adb_usb')
-rw-r--r--adb_usb/Makefile20
-rw-r--r--adb_usb/README8
-rw-r--r--adb_usb/config.h4
3 files changed, 20 insertions, 12 deletions
diff --git a/adb_usb/Makefile b/adb_usb/Makefile
index 802b4248c..56b342df9 100644
--- a/adb_usb/Makefile
+++ b/adb_usb/Makefile
@@ -8,11 +8,11 @@ COMMON_DIR = ..
8TARGET_DIR = . 8TARGET_DIR = .
9 9
10# keyboard dependent files 10# keyboard dependent files
11TARGET_SRC = main_pjrc.c \ 11SRC = main.c \
12 keymap.c \ 12 keymap.c \
13 matrix.c \ 13 matrix.c \
14 led.c \ 14 led.c \
15 adb.c 15 adb.c
16 16
17CONFIG_H = config.h 17CONFIG_H = config.h
18 18
@@ -36,10 +36,10 @@ F_CPU = 16000000
36# Build Options 36# Build Options
37# comment out to disable the options. 37# comment out to disable the options.
38# 38#
39MOUSEKEY_ENABLE = yes # Mouse keys 39#MOUSEKEY_ENABLE = yes # Mouse keys
40#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support 40#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support
41USB_EXTRA_ENABLE = yes # Audio control and System control 41#EXTRAKEY_ENABLE = yes # Audio control and System control
42#USB_NKRO_ENABLE = yes # USB Nkey Rollover 42#NKRO_ENABLE = yes # USB Nkey Rollover
43 43
44 44
45 45
@@ -48,5 +48,5 @@ PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
48 48
49 49
50 50
51include $(COMMON_DIR)/Makefile.pjrc 51include $(COMMON_DIR)/pjrc.mk
52include $(COMMON_DIR)/Makefile.common 52include $(COMMON_DIR)/common.mk
diff --git a/adb_usb/README b/adb_usb/README
index b4bd35bb3..5d0e1bc86 100644
--- a/adb_usb/README
+++ b/adb_usb/README
@@ -59,4 +59,12 @@ effort at this time.
59 ), 59 ),
60 60
61 61
62Notes
63-----
64Many ADB keyboards has no discrimination between right modifier and left one,
65you will always see left control even if you press right control key.
66Apple Extended Keyboard and Apple Extended Keyboard II are the examples.
67Though ADB protocol itsef has the ability of distinction between right and left.
68And most ADB keyboard has no NKRO functionality, though ADB protocol itsef has that.
69
62EOF 70EOF
diff --git a/adb_usb/config.h b/adb_usb/config.h
index 27f31ca9e..6431ede4c 100644
--- a/adb_usb/config.h
+++ b/adb_usb/config.h
@@ -37,8 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
37 37
38/* key combination for command */ 38/* key combination for command */
39#define IS_COMMAND() ( \ 39#define IS_COMMAND() ( \
40 keyboard_report->mods == (BIT_LSHIFT | BIT_LCTRL | BIT_LALT | BIT_LGUI) || \ 40 keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_LCTRL) | MOD_BIT(KB_LALT) | MOD_BIT(KB_LGUI)) || \
41 keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) \ 41 keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_RSHIFT)) \
42) 42)
43 43
44 44