diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 2088c10c9..4a6d0355f 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -972,6 +972,19 @@ void send_nibble(uint8_t number) { | |||
| 972 | } | 972 | } |
| 973 | } | 973 | } |
| 974 | 974 | ||
| 975 | |||
| 976 | __attribute__((weak)) | ||
| 977 | uint16_t hex_to_keycode(uint8_t hex) | ||
| 978 | { | ||
| 979 | if (hex == 0x0) { | ||
| 980 | return KC_0; | ||
| 981 | } else if (hex < 0xA) { | ||
| 982 | return KC_1 + (hex - 0x1); | ||
| 983 | } else { | ||
| 984 | return KC_A + (hex - 0xA); | ||
| 985 | } | ||
| 986 | } | ||
| 987 | |||
| 975 | void api_send_unicode(uint32_t unicode) { | 988 | void api_send_unicode(uint32_t unicode) { |
| 976 | #ifdef API_ENABLE | 989 | #ifdef API_ENABLE |
| 977 | uint8_t chunk[4]; | 990 | uint8_t chunk[4]; |
