diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-03-20 22:49:32 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-03-20 22:49:32 -0400 |
commit | 5c45ba947c760cbb28e67d6eabb887fb56cdb170 (patch) | |
tree | aaa96543fa1b2e2364ba1b7205ed251ec3f7d08a /keyboard/planck/extended_keymap_common.h | |
parent | a94beded1a36057a2afc3d321b4c3f7dd6afa251 (diff) |
function stuff too
Diffstat (limited to 'keyboard/planck/extended_keymap_common.h')
-rw-r--r-- | keyboard/planck/extended_keymap_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keyboard/planck/extended_keymap_common.h b/keyboard/planck/extended_keymap_common.h index 773b1c5151..fdce9df970 100644 --- a/keyboard/planck/extended_keymap_common.h +++ b/keyboard/planck/extended_keymap_common.h @@ -54,6 +54,9 @@ uint16_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); +/* translates Fn keycode to action */ +action_t keymap_func_to_action(uint16_t keycode); + extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; extern const uint16_t fn_actions[]; @@ -67,6 +70,9 @@ extern const uint16_t fn_actions[]; #define RALT(kc) kc | 0x1400 #define RGUI(kc) kc | 0x1800 +#define FUNC(kc) kc | 0x2000 + #define S(kc) LSFT(kc) +#define F(kc) FUNC(kc) #endif |