diff options
Diffstat (limited to 'common/keymap.h')
| -rw-r--r-- | common/keymap.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/common/keymap.h b/common/keymap.h index 7dfd6c2a1..30d73f797 100644 --- a/common/keymap.h +++ b/common/keymap.h | |||
| @@ -20,9 +20,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | 20 | ||
| 21 | #include <stdint.h> | 21 | #include <stdint.h> |
| 22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
| 23 | #include "action.h" | ||
| 23 | 24 | ||
| 24 | 25 | ||
| 25 | /* keycode in specific layer */ | 26 | // TODO: move to action.h? |
| 27 | /* layer used currently */ | ||
| 28 | extern uint8_t current_layer; | ||
| 29 | /* layer to return or start with */ | ||
| 30 | extern uint8_t default_layer; | ||
| 31 | |||
| 32 | |||
| 33 | /* action for key */ | ||
| 34 | // TODO: should use struct key_t? | ||
| 35 | action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col); | ||
| 36 | |||
| 37 | /* user defined special function */ | ||
| 38 | void keymap_call_function(keyrecord_t *record, uint8_t id, uint8_t opt); | ||
| 39 | |||
| 40 | |||
| 41 | #ifndef NO_LEGACY_KEYMAP_SUPPORT | ||
| 42 | /* keycode of key */ | ||
| 26 | uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col); | 43 | uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col); |
| 27 | 44 | ||
| 28 | /* layer to move during press Fn key */ | 45 | /* layer to move during press Fn key */ |
| @@ -30,5 +47,6 @@ uint8_t keymap_fn_layer(uint8_t fn_bits); | |||
| 30 | 47 | ||
| 31 | /* keycode to send when release Fn key without using */ | 48 | /* keycode to send when release Fn key without using */ |
| 32 | uint8_t keymap_fn_keycode(uint8_t fn_bits); | 49 | uint8_t keymap_fn_keycode(uint8_t fn_bits); |
| 50 | #endif | ||
| 33 | 51 | ||
| 34 | #endif | 52 | #endif |
