From 76033dcd892a115240c5a990e5643cd53acbca87 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 18 Jun 2012 12:23:17 +0900 Subject: Add a keymap layer into ADB converter. --- converter/adb_usb/matrix.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'converter/adb_usb/matrix.c') 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(": "); -- cgit v1.2.3