summaryrefslogtreecommitdiff
path: root/keyboard
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-13 11:47:19 +0900
committertmk <nobody@nowhere>2013-02-13 11:47:19 +0900
commit9bc82bf61c342ca96e6f942b169b7c88b6bf95cf (patch)
tree5ef3904f124fdb75eb69e2e0418a3c120f02ffb8 /keyboard
parent7054203e16af627a921b503a9508ce789913471d (diff)
Change action API
Diffstat (limited to 'keyboard')
-rw-r--r--keyboard/gh60/keymap.c5
-rw-r--r--keyboard/hhkb/keymap.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/keyboard/gh60/keymap.c b/keyboard/gh60/keymap.c
index d2da50529e..9cef2137b6 100644
--- a/keyboard/gh60/keymap.c
+++ b/keyboard/gh60/keymap.c
@@ -181,11 +181,8 @@ action_t keymap_fn_to_action(uint8_t keycode)
}
/* convert key to action */
-action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col)
+action_t action_for_key(uint8_t layer, key_t key)
{
- key_t key;
- key.pos.row = row;
- key.pos.col = col;
uint8_t keycode = keymap_key_to_keycode(layer, key);
switch (keycode) {
case KC_FN0 ... KC_FN31:
diff --git a/keyboard/hhkb/keymap.c b/keyboard/hhkb/keymap.c
index a5b6d3ace0..b1407e1ad8 100644
--- a/keyboard/hhkb/keymap.c
+++ b/keyboard/hhkb/keymap.c
@@ -330,11 +330,8 @@ action_t keymap_fn_to_action(uint8_t keycode)
}
/* convert key to action */
-action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col)
+action_t action_for_key(uint8_t layer, key_t key)
{
- key_t key;
- key.pos.row = row;
- key.pos.col = col;
uint8_t keycode = keymap_key_to_keycode(layer, key);
switch (keycode) {
case KC_FN0 ... KC_FN31: