summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_unicode.h
diff options
context:
space:
mode:
authorGergely Nagy <algernon@madhouse-project.org>2016-08-14 14:34:52 +0200
committerGergely Nagy <algernon@madhouse-project.org>2016-08-15 10:08:53 +0200
commita312cbf712764277e0dbbbb99410c2f6fc6c7484 (patch)
tree9f78d4f9d041304fea69e78f68bfd52f972aecfb /quantum/process_keycode/process_unicode.h
parent234dd276cf03be6fd6961473e9d9c8f35deec682 (diff)
downloadqmk_firmware-a312cbf712764277e0dbbbb99410c2f6fc6c7484.tar.gz
qmk_firmware-a312cbf712764277e0dbbbb99410c2f6fc6c7484.tar.xz
process_unicode: Use uint32_t for UCIS purposes
Use a single uint32_t to store the unicode of a symbol, instead of an array of uint16_ts. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Diffstat (limited to 'quantum/process_keycode/process_unicode.h')
-rw-r--r--quantum/process_keycode/process_unicode.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_unicode.h b/quantum/process_keycode/process_unicode.h
index 75607e40e..dd6dd7138 100644
--- a/quantum/process_keycode/process_unicode.h
+++ b/quantum/process_keycode/process_unicode.h
@@ -12,6 +12,7 @@ void set_unicode_input_mode(uint8_t os_target);
void unicode_input_start(void);
void unicode_input_finish(void);
void register_hex(uint16_t hex);
+void register_hex32(uint32_t hex);
bool process_unicode(uint16_t keycode, keyrecord_t *record);
@@ -22,7 +23,7 @@ bool process_unicode(uint16_t keycode, keyrecord_t *record);
typedef struct {
char *symbol;
- uint16_t codes[4];
+ uint32_t code;
} qk_ucis_symbol_t;
struct {
@@ -31,8 +32,8 @@ struct {
bool in_progress:1;
} qk_ucis_state;
-#define UCIS_TABLE(...) {__VA_ARGS__, {NULL, {}}}
-#define UCIS_SYM(name, ...) {name, {__VA_ARGS__, 0}}
+#define UCIS_TABLE(...) {__VA_ARGS__, {NULL, 0}}
+#define UCIS_SYM(name, code) {name, code}
extern const qk_ucis_symbol_t ucis_symbol_table[];