Fix Unicode EEPROM handling so it is consistent. (#4066)
* Fix Unicode EEPROM handling so it's consistant * Remove changes to my userspace * Optimize variables used * fix functions * additional cleanup * Add False Flag * rename function
This commit is contained in:
parent
7e1b57add4
commit
7222e3691b
5 changed files with 17 additions and 15 deletions
|
@ -17,15 +17,10 @@
|
|||
#include "action_util.h"
|
||||
#include "eeprom.h"
|
||||
|
||||
static uint8_t first_flag = 0;
|
||||
|
||||
bool process_unicode(uint16_t keycode, keyrecord_t *record) {
|
||||
if (keycode > QK_UNICODE && record->event.pressed) {
|
||||
if (first_flag == 0) {
|
||||
set_unicode_input_mode(eeprom_read_byte(EECONFIG_UNICODEMODE));
|
||||
first_flag = 1;
|
||||
}
|
||||
uint16_t unicode = keycode & 0x7FFF;
|
||||
unicode_input_mode_init();
|
||||
unicode_input_start();
|
||||
register_hex(unicode);
|
||||
unicode_input_finish();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue