summaryrefslogtreecommitdiff
path: root/converter/m0110_usb/matrix.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-04-12 21:52:34 +0900
committertmk <nobody@nowhere>2013-04-12 22:49:16 +0900
commit2b33ecad57f80d9235665ecfbe477c098494468b (patch)
tree3d47bf4dd1bc7e326eb2bc1775b80c6a7c11244e /converter/m0110_usb/matrix.c
parent2372029de5f595f496bd6cd803f9b0a1bb5bd5ee (diff)
Add new build options on m0110_usb
Diffstat (limited to 'converter/m0110_usb/matrix.c')
-rw-r--r--converter/m0110_usb/matrix.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/converter/m0110_usb/matrix.c b/converter/m0110_usb/matrix.c
index c71a4874c2..2189c0b56f 100644
--- a/converter/m0110_usb/matrix.c
+++ b/converter/m0110_usb/matrix.c
@@ -74,31 +74,11 @@ uint8_t matrix_scan(void)
is_modified = false;
key = m0110_recv_key();
-#ifdef MATRIX_HAS_LOCKING_CAPS
- // Send Caps key up event
- if (matrix_is_on(ROW(CAPS), COL(CAPS))) {
- is_modified = true;
- register_key(CAPS_BREAK);
- }
-#endif
if (key == M0110_NULL) {
return 0;
} else if (key == M0110_ERROR) {
return 0;
} else {
-#ifdef MATRIX_HAS_LOCKING_CAPS
- if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) {
- // CAPS LOCK on:
- // Ignore LockingCaps key down event
- if (key == CAPS) return 0;
- // Convert LockingCaps key up event into down event
- if (key == CAPS_BREAK) key = CAPS;
- } else {
- // CAPS LOCK off:
- // Ignore LockingCaps key up event
- if (key == CAPS_BREAK) return 0;
- }
-#endif
is_modified = true;
register_key(key);
}