diff options
author | Ryan <[email protected]> | 2020-02-25 12:54:51 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-25 12:54:51 +1100 |
commit | bb8d4b4d23ee04f6034f8880b8a9f93fa4673c38 (patch) | |
tree | 369bef3cc7ed134775fe25ef81948289023779ec /quantum/process_keycode/process_unicodemap.c | |
parent | 93c5307fd60c35780921570ccf41a1806847eb9c (diff) | |
download | qmk_firmware-bb8d4b4d23ee04f6034f8880b8a9f93fa4673c38.tar.gz qmk_firmware-bb8d4b4d23ee04f6034f8880b8a9f93fa4673c38.zip |
`send_unicode_string()`: Add support for code points > 0xFFFF (#8236)0.7.169
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 4364f156c4..1be51a995c 100644 --- a/quantum/process_keycode/process_unicodemap.c +++ b/quantum/process_keycode/process_unicodemap.c @@ -16,26 +16,6 @@ #include "process_unicodemap.h" -void register_hex32(uint32_t hex) { - bool onzerostart = true; - for (int i = 7; i >= 0; i--) { - if (i <= 3) { - onzerostart = false; - } - uint8_t digit = ((hex >> (i * 4)) & 0xF); - if (digit == 0) { - if (!onzerostart) { - register_code(hex_to_keycode(digit)); - unregister_code(hex_to_keycode(digit)); - } - } else { - register_code(hex_to_keycode(digit)); - unregister_code(hex_to_keycode(digit)); - onzerostart = false; - } - } -} - __attribute__((weak)) uint16_t unicodemap_index(uint16_t keycode) { if (keycode >= QK_UNICODEMAP_PAIR) { // Keycode is a pair: extract index based on Shift / Caps Lock state |