diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-10-27 19:10:36 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-27 19:10:36 -0400 |
commit | e98c501a614385132a2e2a61a1242f12bab89969 (patch) | |
tree | f1f302d4ea2b6661f503b76782323545691ee87a /tmk_core/common/action_layer.c | |
parent | d311fd8d1a0af3b767d26b520d399bf0db22f058 (diff) |
almost there - keymap_key_to_keycode returning 16bits, maybeunicode
Diffstat (limited to 'tmk_core/common/action_layer.c')
-rw-r--r-- | tmk_core/common/action_layer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index c535615f44..8dfb35b626 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c @@ -112,7 +112,7 @@ void layer_debug(void) -action_t layer_switch_get_action(keypos_t key) +action_t layer_switch_get_action(keyrecord_t *record, keypos_t key) { action_t action; action.code = ACTION_TRANSPARENT; @@ -122,17 +122,17 @@ action_t layer_switch_get_action(keypos_t key) /* check top layer first */ for (int8_t i = 31; i >= 0; i--) { if (layers & (1UL<<i)) { - action = action_for_key(i, key); + action = action_for_key(record, i, key); if (action.code != ACTION_TRANSPARENT) { return action; } } } /* fall back to layer 0 */ - action = action_for_key(0, key); + action = action_for_key(record, 0, key); return action; #else - action = action_for_key(biton32(default_layer_state), key); + action = action_for_key(record, biton32(default_layer_state), key); return action; #endif } |