Remove unicode init from process_record_* functions

This commit is contained in:
Drashna Jaelre 2018-11-02 08:41:55 -07:00
parent 18fcde13ad
commit 7b6391bd18
No known key found for this signature in database
GPG Key ID: 4C4221222CD5F9F0
3 changed files with 0 additions and 4 deletions

View File

@ -93,7 +93,6 @@ void register_ucis(const char *hex) {
}
bool process_ucis (uint16_t keycode, keyrecord_t *record) {
unicode_input_mode_init();
if (!qk_ucis_state.in_progress)
return true;

View File

@ -20,11 +20,9 @@
bool process_unicode(uint16_t keycode, keyrecord_t *record) {
if (keycode > QK_UNICODE && record->event.pressed) {
uint16_t unicode = keycode & 0x7FFF;
unicode_input_mode_init();
unicode_input_start();
register_hex(unicode);
unicode_input_finish();
}
return true;
}

View File

@ -45,7 +45,6 @@ __attribute__((weak))
void unicode_map_input_error() {}
bool process_unicode_map(uint16_t keycode, keyrecord_t *record) {
unicode_input_mode_init();
uint8_t input_mode = get_unicode_input_mode();
if ((keycode & QK_UNICODE_MAP) == QK_UNICODE_MAP && record->event.pressed) {
const uint32_t* map = unicode_map;