aboutsummaryrefslogtreecommitdiff
path: root/keyboard/hhkb
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/hhkb
parent7054203e16af627a921b503a9508ce789913471d (diff)
downloadqmk_firmware-9bc82bf61c342ca96e6f942b169b7c88b6bf95cf.tar.gz
qmk_firmware-9bc82bf61c342ca96e6f942b169b7c88b6bf95cf.zip
Change action API
Diffstat (limited to 'keyboard/hhkb')
-rw-r--r--keyboard/hhkb/keymap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/keyboard/hhkb/keymap.c b/keyboard/hhkb/keymap.c
index a5b6d3ace..b1407e1ad 100644
--- a/keyboard/hhkb/keymap.c
+++ b/keyboard/hhkb/keymap.c
@@ -330,11 +330,8 @@ action_t keymap_fn_to_action(uint8_t keycode)
330} 330}
331 331
332/* convert key to action */ 332/* convert key to action */
333action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) 333action_t action_for_key(uint8_t layer, key_t key)
334{ 334{
335 key_t key;
336 key.pos.row = row;
337 key.pos.col = col;
338 uint8_t keycode = keymap_key_to_keycode(layer, key); 335 uint8_t keycode = keymap_key_to_keycode(layer, key);
339 switch (keycode) { 336 switch (keycode) {
340 case KC_FN0 ... KC_FN31: 337 case KC_FN0 ... KC_FN31: