diff options
| author | tmk <nobody@nowhere> | 2012-12-16 02:32:07 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2012-12-16 02:32:07 +0900 |
| commit | 8a709c2750eab09ec0f83450410a13640931d48e (patch) | |
| tree | 224bcea716521704d63993ed54917152a6bf046e /common/keymap.h | |
| parent | 77f157943f4e083fb9f1eaa0a55078b128842458 (diff) | |
| download | qmk_firmware-8a709c2750eab09ec0f83450410a13640931d48e.tar.gz qmk_firmware-8a709c2750eab09ec0f83450410a13640931d48e.zip | |
Add initial fix for new keymap.
Diffstat (limited to 'common/keymap.h')
| -rw-r--r-- | common/keymap.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/common/keymap.h b/common/keymap.h index 7dfd6c2a1..935d886d7 100644 --- a/common/keymap.h +++ b/common/keymap.h | |||
| @@ -20,15 +20,21 @@ 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 | * legacy keymap interface: keycode |
| 27 | */ | ||
| 26 | uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col); | 28 | uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col); |
| 27 | |||
| 28 | /* layer to move during press Fn key */ | 29 | /* layer to move during press Fn key */ |
| 29 | uint8_t keymap_fn_layer(uint8_t fn_bits); | 30 | uint8_t keymap_fn_layer(uint8_t fn_bits); |
| 30 | |||
| 31 | /* keycode to send when release Fn key without using */ | 31 | /* keycode to send when release Fn key without using */ |
| 32 | uint8_t keymap_fn_keycode(uint8_t fn_bits); | 32 | uint8_t keymap_fn_keycode(uint8_t fn_bits); |
| 33 | 33 | ||
| 34 | /* | ||
| 35 | * new keymap interface: action | ||
| 36 | */ | ||
| 37 | action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col); | ||
| 38 | uint8_t keymap_process_event(keyevent_t event); | ||
| 39 | |||
| 34 | #endif | 40 | #endif |
