diff options
author | tmk <nobody@nowhere> | 2013-02-01 14:48:11 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-02-01 14:48:11 +0900 |
commit | 1d7962ba8a20323dc13cc913381608e117afaeb4 (patch) | |
tree | 7f345a164f79364a3d7178be8b828d648b3e6c8a /common/keymap.h | |
parent | d95463f2e0369dc0e28497bb923b3012fb09e900 (diff) |
Add user defined function to action.
Diffstat (limited to 'common/keymap.h')
-rw-r--r-- | common/keymap.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/keymap.h b/common/keymap.h index 7487615518..e0fafeaf25 100644 --- a/common/keymap.h +++ b/common/keymap.h @@ -29,11 +29,13 @@ extern uint8_t current_layer; extern uint8_t default_layer; -/* - * new keymap interface: action - */ +/* action for key */ +// TODO: should use struct key_t? action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col); +/* user defined special function */ +void keymap_call_function(keyrecord_t *record, uint8_t id); + #ifndef NO_LEGACY_KEYMAP_SUPPORT /* keycode of key */ |