aboutsummaryrefslogtreecommitdiff
path: root/converter/adb_usb/matrix.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-06-18 12:23:17 +0900
committertmk <nobody@nowhere>2012-06-18 12:23:17 +0900
commit76033dcd892a115240c5a990e5643cd53acbca87 (patch)
treeec2bf5e87331d3b8a54c486a5b064455ac739e75 /converter/adb_usb/matrix.c
parentdd10d11a449b1c050d6e42c61e2ecb910b5b678e (diff)
downloadqmk_firmware-76033dcd892a115240c5a990e5643cd53acbca87.tar.gz
qmk_firmware-76033dcd892a115240c5a990e5643cd53acbca87.zip
Add a keymap layer into ADB converter.
Diffstat (limited to 'converter/adb_usb/matrix.c')
-rw-r--r--converter/adb_usb/matrix.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/converter/adb_usb/matrix.c b/converter/adb_usb/matrix.c
index a2367af56..4d1b9e9aa 100644
--- a/converter/adb_usb/matrix.c
+++ b/converter/adb_usb/matrix.c
@@ -100,6 +100,10 @@ uint8_t matrix_scan(void)
100 key0 = codes>>8; 100 key0 = codes>>8;
101 key1 = codes&0xFF; 101 key1 = codes&0xFF;
102 102
103 if (debug_enable && codes) {
104 print("adb_host_kbd_recv: "); phex16(codes); print("\n");
105 }
106
103#ifdef MATRIX_HAS_LOCKING_CAPS 107#ifdef MATRIX_HAS_LOCKING_CAPS
104 // Send Caps key up event 108 // Send Caps key up event
105 if (matrix_is_on(ROW(CAPS), COL(CAPS))) { 109 if (matrix_is_on(ROW(CAPS), COL(CAPS))) {
@@ -135,9 +139,6 @@ uint8_t matrix_scan(void)
135 _register_key(key1); 139 _register_key(key1);
136 } 140 }
137 141
138 if (debug_enable) {
139 print("adb_host_kbd_recv: "); phex16(codes); print("\n");
140 }
141 return 1; 142 return 1;
142} 143}
143 144
@@ -177,9 +178,9 @@ uint16_t matrix_get_row(uint8_t row)
177void matrix_print(void) 178void matrix_print(void)
178{ 179{
179#if (MATRIX_COLS <= 8) 180#if (MATRIX_COLS <= 8)
180 print("\nr/c 01234567\n"); 181 print("r/c 01234567\n");
181#else 182#else
182 print("\nr/c 0123456789ABCDEF\n"); 183 print("r/c 0123456789ABCDEF\n");
183#endif 184#endif
184 for (uint8_t row = 0; row < matrix_rows(); row++) { 185 for (uint8_t row = 0; row < matrix_rows(); row++) {
185 phex(row); print(": "); 186 phex(row); print(": ");