Refactor Unicode feature (#18333)
This commit is contained in:
parent
4087251da6
commit
3d667f0970
15 changed files with 591 additions and 506 deletions
|
@ -15,14 +15,14 @@
|
|||
*/
|
||||
|
||||
#include "process_unicode.h"
|
||||
#include "action_util.h"
|
||||
#include "eeprom.h"
|
||||
#include "unicode.h"
|
||||
#include "quantum_keycodes.h"
|
||||
|
||||
bool process_unicode(uint16_t keycode, keyrecord_t *record) {
|
||||
if (keycode >= QK_UNICODE && keycode <= QK_UNICODE_MAX && record->event.pressed) {
|
||||
unicode_input_start();
|
||||
register_hex(keycode & 0x7FFF);
|
||||
unicode_input_finish();
|
||||
if (record->event.pressed) {
|
||||
if (keycode >= QK_UNICODE && keycode <= QK_UNICODE_MAX) {
|
||||
register_unicode(keycode & 0x7FFF);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue