From c8d58a9f19a9cc3926bd16cf6f5581e6ed28429b Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Tue, 15 Sep 2015 00:33:57 -0400 Subject: [PATCH] unicode working, i think --- keyboard/planck/keymap_common.c | 11 ----------- keyboard/planck/keymap_unicode.c | 10 ++++++++++ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/keyboard/planck/keymap_common.c b/keyboard/planck/keymap_common.c index 0cf3f31c..93e91c79 100644 --- a/keyboard/planck/keymap_common.c +++ b/keyboard/planck/keymap_common.c @@ -27,17 +27,6 @@ along with this program. If not, see . static action_t keycode_to_action(uint16_t keycode); - -uint16_t hextokeycode(int hex) { - if (hex == 0x0) { - return KC_0; - } else if (hex < 0xA) { - return KC_1 + (hex - 0x1); - } else { - return KC_A + (hex - 0xA); - } -} - /* converts key to action */ action_t action_for_key(uint8_t layer, keypos_t key) { diff --git a/keyboard/planck/keymap_unicode.c b/keyboard/planck/keymap_unicode.c index 8e187d99..a9357ede 100644 --- a/keyboard/planck/keymap_unicode.c +++ b/keyboard/planck/keymap_unicode.c @@ -17,6 +17,16 @@ along with this program. If not, see . #include "keymap_common.h" +uint16_t hextokeycode(int hex) { + if (hex == 0x0) { + return KC_0; + } else if (hex < 0xA) { + return KC_1 + (hex - 0x1); + } else { + return KC_A + (hex - 0xA); + } +} + void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {