aboutsummaryrefslogtreecommitdiff
path: root/layouts/community/ergodox/coderkun_neo2/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/ergodox/coderkun_neo2/keymap.c')
-rw-r--r--layouts/community/ergodox/coderkun_neo2/keymap.c28
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
274uint16_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}