]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/stm32_f072_onekey/keymap_plain.c
Add a qwerty layer
[max/tmk_keyboard.git] / keyboard / stm32_f072_onekey / keymap_plain.c
index 8de1c0279e0190b820c15df7cbd262b7a23a4de1..88c56baa69755492cc0e197c0586fa51b17d2e72 100644 (file)
@@ -18,6 +18,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "keycode.h"
 #include "action.h"
 #include "action_macro.h"
+#include "action_code.h"
 #include "report.h"
 #include "host.h"
 #include "print.h"
@@ -28,7 +29,7 @@ static const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     {{KC_CAPS}}, // test with KC_CAPS, KC_A, KC_BTLD
 };
 
-static const uint16_t fn_actions[] = {
+static const action_t fn_actions[] = {
 };
 
 /* translates key to keycode */
@@ -40,5 +41,5 @@ uint8_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
 /* translates Fn keycode to action */
 action_t keymap_fn_to_action(uint8_t keycode)
 {
-    return (action_t){ .code = fn_actions[FN_INDEX(keycode)] };
+    return (action_t)fn_actions[FN_INDEX(keycode)];
 }