summaryrefslogtreecommitdiff
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)
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 a2367af56a..4d1b9e9aa5 100644
--- a/converter/adb_usb/matrix.c
+++ b/converter/adb_usb/matrix.c
@@ -100,6 +100,10 @@ uint8_t matrix_scan(void)
key0 = codes>>8;
key1 = codes&0xFF;
+ if (debug_enable && codes) {
+ print("adb_host_kbd_recv: "); phex16(codes); print("\n");
+ }
+
#ifdef MATRIX_HAS_LOCKING_CAPS
// Send Caps key up event
if (matrix_is_on(ROW(CAPS), COL(CAPS))) {
@@ -135,9 +139,6 @@ uint8_t matrix_scan(void)
_register_key(key1);
}
- if (debug_enable) {
- print("adb_host_kbd_recv: "); phex16(codes); print("\n");
- }
return 1;
}
@@ -177,9 +178,9 @@ uint16_t matrix_get_row(uint8_t row)
void matrix_print(void)
{
#if (MATRIX_COLS <= 8)
- print("\nr/c 01234567\n");
+ print("r/c 01234567\n");
#else
- print("\nr/c 0123456789ABCDEF\n");
+ print("r/c 0123456789ABCDEF\n");
#endif
for (uint8_t row = 0; row < matrix_rows(); row++) {
phex(row); print(": ");