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_ucis.h | |
parent | 6788cbd76291e1f3103a350598f7bf5d523a7310 (diff) | |
download | qmk_firmware-cbabb4d417ef58f5d484dc256b637f61619efaa8.tar.gz |
split up unicode systems into different files
Diffstat (limited to 'quantum/process_keycode/process_ucis.h')
-rw-r--r-- | quantum/process_keycode/process_ucis.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_ucis.h b/quantum/process_keycode/process_ucis.h new file mode 100644 index 000000000..520db8042 --- /dev/null +++ b/quantum/process_keycode/process_ucis.h @@ -0,0 +1,34 @@ +#ifndef PROCESS_UCIS_H +#define PROCESS_UCIS_H + +#include "quantum.h" + +#ifndef UCIS_MAX_SYMBOL_LENGTH +#define UCIS_MAX_SYMBOL_LENGTH 32 +#endif + +typedef struct { + char *symbol; + char *code; +} qk_ucis_symbol_t; + +typedef struct { + uint8_t count; + uint16_t codes[UCIS_MAX_SYMBOL_LENGTH]; + bool in_progress:1; +} qk_ucis_state_t; + +extern qk_ucis_state_t qk_ucis_state; + +#define UCIS_TABLE(...) {__VA_ARGS__, {NULL, NULL}} +#define UCIS_SYM(name, code) {name, #code} + +extern const qk_ucis_symbol_t ucis_symbol_table[]; + +void qk_ucis_start(void); +void qk_ucis_start_user(void); +void qk_ucis_symbol_fallback (void); +void register_ucis(const char *hex); +bool process_ucis (uint16_t keycode, keyrecord_t *record); + +#endif |