diff options
| author | Ryan <fauxpark@gmail.com> | 2021-03-12 18:03:44 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-12 18:03:44 +1100 |
| commit | 88dce243750d9e80948cd7262566182018d7bbdf (patch) | |
| tree | 01fef7490b57303772b58c6cd0986c6d38b372f5 /layouts | |
| parent | ea2a7c5ea4c4509ea7008a835eb9b98b0b1c05d6 (diff) | |
| download | qmk_firmware-88dce243750d9e80948cd7262566182018d7bbdf.tar.gz qmk_firmware-88dce243750d9e80948cd7262566182018d7bbdf.zip | |
Remove hex_to_keycode and move tap_random_base64 to send_string.c (#12079)
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/community/ergodox/coderkun_neo2/keymap.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/layouts/community/ergodox/coderkun_neo2/keymap.c b/layouts/community/ergodox/coderkun_neo2/keymap.c index a6fe61079..638442676 100644 --- a/layouts/community/ergodox/coderkun_neo2/keymap.c +++ b/layouts/community/ergodox/coderkun_neo2/keymap.c | |||
| @@ -269,31 +269,3 @@ void unicode_input_start (void) { | |||
| 269 | unregister_code(KC_LSFT); | 269 | unregister_code(KC_LSFT); |
| 270 | unregister_code(KC_LCTL); | 270 | unregister_code(KC_LCTL); |
| 271 | }; | 271 | }; |
| 272 | |||
| 273 | // Override method to use NEO_A instead of KC_A | ||
| 274 | uint16_t hex_to_keycode(uint8_t hex) | ||
| 275 | { | ||
| 276 | if(hex == 0x0) { | ||
| 277 | return KC_0; | ||
| 278 | } | ||
| 279 | else if(hex >= 0xA) { | ||
| 280 | switch(hex) { | ||
| 281 | case 0xA: | ||
| 282 | return NEO_A; | ||
| 283 | case 0xB: | ||
| 284 | return NEO_B; | ||
| 285 | case 0xC: | ||
| 286 | return NEO_C; | ||
| 287 | case 0xD: | ||
| 288 | return NEO_D; | ||
| 289 | case 0xE: | ||
| 290 | return NEO_E; | ||
| 291 | case 0xF: | ||
| 292 | return NEO_F; | ||
| 293 | default: | ||
| 294 | return KC_NO; | ||
| 295 | } | ||
| 296 | } | ||
| 297 | |||
| 298 | return KC_1 + (hex - 0x1); | ||
| 299 | } | ||
