aboutsummaryrefslogtreecommitdiff
path: root/common/keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/keymap.h')
-rw-r--r--common/keymap.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/common/keymap.h b/common/keymap.h
index f54fea90d..748761551 100644
--- a/common/keymap.h
+++ b/common/keymap.h
@@ -28,18 +28,22 @@ extern uint8_t current_layer;
28/* layer to return or start with */ 28/* layer to return or start with */
29extern uint8_t default_layer; 29extern uint8_t default_layer;
30 30
31
31/* 32/*
32 * legacy keymap interface: keycode 33 * new keymap interface: action
33 */ 34 */
35action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col);
36
37
38#ifndef NO_LEGACY_KEYMAP_SUPPORT
39/* keycode of key */
34uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col); 40uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col);
41
35/* layer to move during press Fn key */ 42/* layer to move during press Fn key */
36uint8_t keymap_fn_layer(uint8_t fn_bits); 43uint8_t keymap_fn_layer(uint8_t fn_bits);
44
37/* keycode to send when release Fn key without using */ 45/* keycode to send when release Fn key without using */
38uint8_t keymap_fn_keycode(uint8_t fn_bits); 46uint8_t keymap_fn_keycode(uint8_t fn_bits);
39 47#endif
40/*
41 * new keymap interface: action
42 */
43action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col);
44 48
45#endif 49#endif