diff options
| author | QMK Bot <hello@qmk.fm> | 2021-03-12 07:04:21 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-03-12 07:04:21 +0000 |
| commit | 71f8f5048b0c583893e26b7a419f40de58c11891 (patch) | |
| tree | 411fe6f77f735e72365200d1dec03451051b5e1e /layouts | |
| parent | 183c49f3522e948c541ee0cc63997f438994c534 (diff) | |
| parent | 88dce243750d9e80948cd7262566182018d7bbdf (diff) | |
| download | qmk_firmware-71f8f5048b0c583893e26b7a419f40de58c11891.tar.gz qmk_firmware-71f8f5048b0c583893e26b7a419f40de58c11891.zip | |
Merge remote-tracking branch 'origin/master' into develop
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 | } | ||
