]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/gh60/keymap.c
Fix debug code of serial_soft.c
[max/tmk_keyboard.git] / keyboard / gh60 / keymap.c
index d2da50529e4fc992e0a753409eed0ff8e6fb3e8b..a17c11fc3b4176d3843639693184163d69cb295b 100644 (file)
@@ -165,7 +165,7 @@ static const uint16_t PROGMEM fn_actions[] = {
 /* translates key to keycode */
 uint8_t keymap_key_to_keycode(uint8_t layer, key_t key)
 {
-    return pgm_read_byte(&keymaps[(layer)][(key.pos.row)][(key.pos.col)]);
+    return pgm_read_byte(&keymaps[(layer)][(key.row)][(key.col)]);
 }
 
 /* translates Fn index to action */
@@ -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: