diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-02-15 16:36:31 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-02-15 16:36:31 -0500 |
commit | cbabb4d417ef58f5d484dc256b637f61619efaa8 (patch) | |
tree | 01ed906acd8ef81a213385697599cee3ac2f68de /quantum/process_keycode/process_unicode.h | |
parent | 6788cbd76291e1f3103a350598f7bf5d523a7310 (diff) | |
download | qmk_firmware-cbabb4d417ef58f5d484dc256b637f61619efaa8.tar.gz qmk_firmware-cbabb4d417ef58f5d484dc256b637f61619efaa8.zip |
split up unicode systems into different files
Diffstat (limited to 'quantum/process_keycode/process_unicode.h')
-rw-r--r-- | quantum/process_keycode/process_unicode.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/quantum/process_keycode/process_unicode.h b/quantum/process_keycode/process_unicode.h index f17cfa6cf..7ed9e54d5 100644 --- a/quantum/process_keycode/process_unicode.h +++ b/quantum/process_keycode/process_unicode.h | |||
@@ -21,42 +21,6 @@ void register_hex(uint16_t hex); | |||
21 | 21 | ||
22 | bool process_unicode(uint16_t keycode, keyrecord_t *record); | 22 | bool process_unicode(uint16_t keycode, keyrecord_t *record); |
23 | 23 | ||
24 | #ifdef UNICODEMAP_ENABLE | ||
25 | void unicode_map_input_error(void); | ||
26 | bool process_unicode_map(uint16_t keycode, keyrecord_t *record); | ||
27 | #endif | ||
28 | |||
29 | #ifdef UCIS_ENABLE | ||
30 | #ifndef UCIS_MAX_SYMBOL_LENGTH | ||
31 | #define UCIS_MAX_SYMBOL_LENGTH 32 | ||
32 | #endif | ||
33 | |||
34 | typedef struct { | ||
35 | char *symbol; | ||
36 | char *code; | ||
37 | } qk_ucis_symbol_t; | ||
38 | |||
39 | typedef struct { | ||
40 | uint8_t count; | ||
41 | uint16_t codes[UCIS_MAX_SYMBOL_LENGTH]; | ||
42 | bool in_progress:1; | ||
43 | } qk_ucis_state_t; | ||
44 | |||
45 | extern qk_ucis_state_t qk_ucis_state; | ||
46 | |||
47 | #define UCIS_TABLE(...) {__VA_ARGS__, {NULL, NULL}} | ||
48 | #define UCIS_SYM(name, code) {name, #code} | ||
49 | |||
50 | extern const qk_ucis_symbol_t ucis_symbol_table[]; | ||
51 | |||
52 | void qk_ucis_start(void); | ||
53 | void qk_ucis_start_user(void); | ||
54 | void qk_ucis_symbol_fallback (void); | ||
55 | void register_ucis(const char *hex); | ||
56 | bool process_ucis (uint16_t keycode, keyrecord_t *record); | ||
57 | |||
58 | #endif | ||
59 | |||
60 | #define UC_BSPC UC(0x0008) | 24 | #define UC_BSPC UC(0x0008) |
61 | 25 | ||
62 | #define UC_SPC UC(0x0020) | 26 | #define UC_SPC UC(0x0020) |