From c4ab832be0f110a127b20e8df2b5223bceb8dcd1 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 12 Mar 2013 12:10:12 +0900 Subject: Fix Locking CapsLock support in ADB converter --- converter/adb_usb/matrix.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'converter/adb_usb/matrix.c') diff --git a/converter/adb_usb/matrix.c b/converter/adb_usb/matrix.c index 18e71aa49..9b26a2a18 100644 --- a/converter/adb_usb/matrix.c +++ b/converter/adb_usb/matrix.c @@ -25,8 +25,6 @@ along with this program. If not, see . #include "print.h" #include "util.h" #include "debug.h" -#include "host.h" -#include "led.h" #include "adb.h" #include "matrix.h" @@ -38,8 +36,6 @@ along with this program. If not, see . # error "MATRIX_ROWS must not exceed 255" #endif -#define ADB_CAPS_UP (ADB_CAPS | 0x80) - static bool is_modified = false; @@ -98,12 +94,6 @@ uint8_t matrix_scan(void) print("adb_host_kbd_recv: "); phex16(codes); print("\n"); } -#ifdef MATRIX_HAS_LOCKING_CAPS - // Send Caps key up event - if (matrix_is_on(MATRIX_ROW(ADB_CAPS), MATRIX_COL(ADB_CAPS))) { - register_key(ADB_CAPS_UP); - } -#endif if (codes == 0) { // no keys return 0; } else if (codes == 0x7F7F) { // power key press @@ -116,23 +106,6 @@ uint8_t matrix_scan(void) for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00; return key1; } else { -#ifdef MATRIX_HAS_LOCKING_CAPS - if (host_keyboard_leds() & (1<