From f8a5eaa3fab683f630390c7ca553810db64d15d6 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Sun, 24 Jan 2016 01:39:00 -0500 Subject: debugging --- quantum/keymap_common.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'quantum/keymap_common.h') diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h index 3db40772e0..396fead332 100644 --- a/quantum/keymap_common.h +++ b/quantum/keymap_common.h @@ -50,15 +50,15 @@ keymap_config_t keymap_config; /* translates key to keycode */ -uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key); +uint32_t keymap_key_to_keycode(uint8_t layer, keypos_t key); /* translates Fn keycode to action */ -action_t keymap_fn_to_action(uint16_t keycode); +action_t keymap_fn_to_action(uint32_t keycode); /* translates Fn keycode to action */ -action_t keymap_func_to_action(uint16_t keycode); +action_t keymap_func_to_action(uint32_t keycode); -extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; +extern const uint32_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; extern const uint16_t fn_actions[]; // Ability to use mods in layouts @@ -204,10 +204,9 @@ extern const uint16_t fn_actions[]; // L-ayer, T-ap - 256 keycode max, 16 layer max #define LT(layer, kc) (kc | 0x8000 | ((layer & 0xF) << 8)) -// For sending unicode codes. -// You may not send codes over 1FFF -- this supports most of UTF8. +// For sending unicode characters. // To have a key that sends out Œ, go UC(0x0152) -#define UNICODE(n) (n | 0x8000) +#define UNICODE(n) (0x80000000 | n) #define UC(n) UNICODE(n) -- cgit v1.2.3