1
0
Fork 0

Refactor Unicode feature (#18333)

This commit is contained in:
Ryan 2022-09-13 01:49:04 +10:00 committed by GitHub
parent 4087251da6
commit 3d667f0970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 591 additions and 506 deletions

View file

@ -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;
}