diff options
Diffstat (limited to 'converter/m0110_usb/matrix.c')
| -rw-r--r-- | converter/m0110_usb/matrix.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/converter/m0110_usb/matrix.c b/converter/m0110_usb/matrix.c index c71a4874c..2189c0b56 100644 --- a/converter/m0110_usb/matrix.c +++ b/converter/m0110_usb/matrix.c | |||
| @@ -74,31 +74,11 @@ uint8_t matrix_scan(void) | |||
| 74 | is_modified = false; | 74 | is_modified = false; |
| 75 | key = m0110_recv_key(); | 75 | key = m0110_recv_key(); |
| 76 | 76 | ||
| 77 | #ifdef MATRIX_HAS_LOCKING_CAPS | ||
| 78 | // Send Caps key up event | ||
| 79 | if (matrix_is_on(ROW(CAPS), COL(CAPS))) { | ||
| 80 | is_modified = true; | ||
| 81 | register_key(CAPS_BREAK); | ||
| 82 | } | ||
| 83 | #endif | ||
| 84 | if (key == M0110_NULL) { | 77 | if (key == M0110_NULL) { |
| 85 | return 0; | 78 | return 0; |
| 86 | } else if (key == M0110_ERROR) { | 79 | } else if (key == M0110_ERROR) { |
| 87 | return 0; | 80 | return 0; |
| 88 | } else { | 81 | } else { |
| 89 | #ifdef MATRIX_HAS_LOCKING_CAPS | ||
| 90 | if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) { | ||
| 91 | // CAPS LOCK on: | ||
| 92 | // Ignore LockingCaps key down event | ||
| 93 | if (key == CAPS) return 0; | ||
| 94 | // Convert LockingCaps key up event into down event | ||
| 95 | if (key == CAPS_BREAK) key = CAPS; | ||
| 96 | } else { | ||
| 97 | // CAPS LOCK off: | ||
| 98 | // Ignore LockingCaps key up event | ||
| 99 | if (key == CAPS_BREAK) return 0; | ||
| 100 | } | ||
| 101 | #endif | ||
| 102 | is_modified = true; | 82 | is_modified = true; |
| 103 | register_key(key); | 83 | register_key(key); |
| 104 | } | 84 | } |
