summaryrefslogtreecommitdiffstats
path: root/common/keymap.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-06-16 17:57:59 +0200
committertmk <nobody@nowhere>2014-07-30 07:07:43 +0200
commitc67ae2a6b546c822759352586c14cd9dccbbe0ff (patch)
treeab77175c64bfce74d2662260b9cdb2af8d8a7efd /common/keymap.c
parent04fe78ee0a7fe9baed39f021799a3dbb24ebeb36 (diff)
downloadqmk_firmware-c67ae2a6b546c822759352586c14cd9dccbbe0ff.tar.gz
qmk_firmware-c67ae2a6b546c822759352586c14cd9dccbbe0ff.tar.xz
Port action_* to mbed
Diffstat (limited to 'common/keymap.c')
-rw-r--r--common/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/keymap.c b/common/keymap.c
index bfb8ffac1..0df2e2edf 100644
--- a/common/keymap.c
+++ b/common/keymap.c
@@ -28,7 +28,7 @@ static action_t keycode_to_action(uint8_t keycode);
/* converts key to action */
-action_t action_for_key(uint8_t layer, key_t key)
+action_t action_for_key(uint8_t layer, keypos_t key)
{
uint8_t keycode = keymap_key_to_keycode(layer, key);
switch (keycode) {
@@ -156,7 +156,7 @@ static action_t keycode_to_action(uint8_t keycode)
* Consider using new keymap API instead.
*/
__attribute__ ((weak))
-uint8_t keymap_key_to_keycode(uint8_t layer, key_t key)
+uint8_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
{
return keymap_get_keycode(layer, key.row, key.col);
}