summaryrefslogtreecommitdiff
path: root/common/keymap.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-31 17:50:53 +0900
committertmk <nobody@nowhere>2013-01-31 17:50:53 +0900
commitd95463f2e0369dc0e28497bb923b3012fb09e900 (patch)
treea5ebf4dd9638f75a52445378d47db2a8ac038b27 /common/keymap.h
parente760953910a51e5972dda21aa9d03279e6f1230b (diff)
Add legacy keymap support.
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 f54fea90d2..7487615518 100644
--- a/common/keymap.h
+++ b/common/keymap.h
@@ -28,18 +28,22 @@ extern uint8_t current_layer;
/* layer to return or start with */
extern uint8_t default_layer;
+
/*
- * legacy keymap interface: keycode
+ * new keymap interface: action
*/
+action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col);
+
+
+#ifndef NO_LEGACY_KEYMAP_SUPPORT
+/* keycode of key */
uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col);
+
/* layer to move during press Fn key */
uint8_t keymap_fn_layer(uint8_t fn_bits);
+
/* keycode to send when release Fn key without using */
uint8_t keymap_fn_keycode(uint8_t fn_bits);
-
-/*
- * new keymap interface: action
- */
-action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col);
+#endif
#endif