summaryrefslogtreecommitdiff
path: root/adb/matrix.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-01-13 16:39:49 +0900
committertmk <nobody@nowhere>2011-01-13 16:39:49 +0900
commitc5b9f2b02b3057b95ebb06092e8fae3ed6108197 (patch)
tree9d59ce8b6e1fff01cb48f0f578e936dd48507d73 /adb/matrix.c
parent56e098d76e7d2a843a66f3a6e409f1d38fe7feac (diff)
change keycodes and define keymap macro for AEK.
ADD: keymap macro for Apple Extended Keyboard in adb/keymap.c FIX: keycodes for Keypad, Fn and Mousekey.
Diffstat (limited to 'adb/matrix.c')
-rw-r--r--adb/matrix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/adb/matrix.c b/adb/matrix.c
index d0643371e2..ca8858d0ba 100644
--- a/adb/matrix.c
+++ b/adb/matrix.c
@@ -76,9 +76,6 @@ uint8_t matrix_scan(void)
codes = adb_host_kbd_recv();
key0 = codes>>8;
key1 = codes&0xFF;
- if (debug_matrix) {
- //print("adb_host_kbd_recv: "); phex16(codes); print("\n");
- }
if (codes == 0) { // no keys
return 0;
@@ -91,6 +88,9 @@ uint8_t matrix_scan(void)
_register_key(key1);
}
+ if (debug_matrix && matrix_is_modified()) {
+ print("adb_host_kbd_recv: "); phex16(codes); print("\n");
+ }
return 1;
}