diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2017-02-15 23:46:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-15 23:46:31 -0500 |
| commit | 77b6ac831eb58e753cc666c66a67e9a9be369061 (patch) | |
| tree | 04e3074214a8415a8b0404477561d990a9ce205c /quantum/quantum.c | |
| parent | 7bef285553dee01bbcb1eaadefbfb39ed75baea4 (diff) | |
| parent | 58823b4e0324f5b2861fc5a0f74f6faa3673f5dc (diff) | |
| download | qmk_firmware-77b6ac831eb58e753cc666c66a67e9a9be369061.tar.gz qmk_firmware-77b6ac831eb58e753cc666c66a67e9a9be369061.zip | |
Merge pull request #1104 from qmk/layer_tap_toggle
Adds layer tap toggle as TT(layer)
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]; |
