]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
unicode working, i think
authorJack Humbert <jack.humb@gmail.com>
Tue, 15 Sep 2015 04:33:57 +0000 (00:33 -0400)
committerJack Humbert <jack.humb@gmail.com>
Tue, 15 Sep 2015 04:33:57 +0000 (00:33 -0400)
keyboard/planck/keymap_common.c
keyboard/planck/keymap_unicode.c

index 0cf3f31cbed884397c31bf1fe3cd80acd6546ac1..93e91c792bd2a2ec5cc11183c51402971d5b4102 100644 (file)
@@ -27,17 +27,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 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)
 {
index 8e187d99f54b8de052d9ff0dc17bd5038227da31..a9357edec7bc4122dcc78afe505de12f351cbe16 100644 (file)
@@ -17,6 +17,16 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #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)
 {