diff options
Diffstat (limited to 'quantum/process_keycode/process_unicodemap.c')
-rw-r--r-- | quantum/process_keycode/process_unicodemap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/quantum/process_keycode/process_unicodemap.c b/quantum/process_keycode/process_unicodemap.c index 4364f156c..1be51a995 100644 --- a/quantum/process_keycode/process_unicodemap.c +++ b/quantum/process_keycode/process_unicodemap.c | |||
@@ -16,26 +16,6 @@ | |||
16 | 16 | ||
17 | #include "process_unicodemap.h" | 17 | #include "process_unicodemap.h" |
18 | 18 | ||
19 | void register_hex32(uint32_t hex) { | ||
20 | bool onzerostart = true; | ||
21 | for (int i = 7; i >= 0; i--) { | ||
22 | if (i <= 3) { | ||
23 | onzerostart = false; | ||
24 | } | ||
25 | uint8_t digit = ((hex >> (i * 4)) & 0xF); | ||
26 | if (digit == 0) { | ||
27 | if (!onzerostart) { | ||
28 | register_code(hex_to_keycode(digit)); | ||
29 | unregister_code(hex_to_keycode(digit)); | ||
30 | } | ||
31 | } else { | ||
32 | register_code(hex_to_keycode(digit)); | ||
33 | unregister_code(hex_to_keycode(digit)); | ||
34 | onzerostart = false; | ||
35 | } | ||
36 | } | ||
37 | } | ||
38 | |||
39 | __attribute__((weak)) uint16_t unicodemap_index(uint16_t keycode) { | 19 | __attribute__((weak)) uint16_t unicodemap_index(uint16_t keycode) { |
40 | if (keycode >= QK_UNICODEMAP_PAIR) { | 20 | if (keycode >= QK_UNICODEMAP_PAIR) { |
41 | // Keycode is a pair: extract index based on Shift / Caps Lock state | 21 | // Keycode is a pair: extract index based on Shift / Caps Lock state |