mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-28 12:09:16 +06:00
Overwrite method hex_to_unicode() for make it compatible with Neo
This commit is contained in:
parent
4c9071964b
commit
8dd69a1b05
@ -290,3 +290,28 @@ void unicode_input_start (void) {
|
||||
unregister_code(KC_LSFT);
|
||||
unregister_code(KC_LCTL);
|
||||
};
|
||||
|
||||
// Override method to use NEO_A instead of KC_A
|
||||
uint16_t hex_to_keycode(uint8_t hex)
|
||||
{
|
||||
if (hex == 0x0) {
|
||||
return KC_0;
|
||||
} else if (hex < 0xA) {
|
||||
return KC_1 + (hex - 0x1);
|
||||
} else {
|
||||
switch(hex) {
|
||||
case 0xA:
|
||||
return NEO_A;
|
||||
case 0xB:
|
||||
return NEO_B;
|
||||
case 0xC:
|
||||
return NEO_C;
|
||||
case 0xD:
|
||||
return NEO_D;
|
||||
case 0xE:
|
||||
return NEO_E;
|
||||
case 0xF:
|
||||
return NEO_F;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user