diff options
author | tmk <nobody@nowhere> | 2013-01-31 17:50:53 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-01-31 17:50:53 +0900 |
commit | d95463f2e0369dc0e28497bb923b3012fb09e900 (patch) | |
tree | a5ebf4dd9638f75a52445378d47db2a8ac038b27 /common/keymap.h | |
parent | e760953910a51e5972dda21aa9d03279e6f1230b (diff) | |
download | qmk_firmware-d95463f2e0369dc0e28497bb923b3012fb09e900.tar.gz qmk_firmware-d95463f2e0369dc0e28497bb923b3012fb09e900.zip |
Add legacy keymap support.
Diffstat (limited to 'common/keymap.h')
-rw-r--r-- | common/keymap.h | 16 |
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 |