From 3347b63d83d019219770f55627f3d5136806bb5c Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 9 Mar 2022 09:07:02 +1100 Subject: handwired/misterdeck refactor (#16572) * handwired/misterdeck refactor * Forgot to remove this --- keyboards/handwired/misterdeck/keymaps/default/config.h | 3 ++- keyboards/handwired/misterdeck/keymaps/default/keymap.c | 13 +++++++------ keyboards/handwired/misterdeck/keymaps/default/rules.mk | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 keyboards/handwired/misterdeck/keymaps/default/rules.mk (limited to 'keyboards/handwired/misterdeck/keymaps/default') diff --git a/keyboards/handwired/misterdeck/keymaps/default/config.h b/keyboards/handwired/misterdeck/keymaps/default/config.h index c21c29910b..92157a0938 100644 --- a/keyboards/handwired/misterdeck/keymaps/default/config.h +++ b/keyboards/handwired/misterdeck/keymaps/default/config.h @@ -1,4 +1,5 @@ -/* Copyright 2021 Chris Broekema (broekema@gmail.com) +/* + * Copyright 2021 Chris Broekema (broekema@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/keyboards/handwired/misterdeck/keymaps/default/keymap.c b/keyboards/handwired/misterdeck/keymaps/default/keymap.c index a6b6ee467e..217d25551c 100644 --- a/keyboards/handwired/misterdeck/keymaps/default/keymap.c +++ b/keyboards/handwired/misterdeck/keymaps/default/keymap.c @@ -15,20 +15,21 @@ */ #include QMK_KEYBOARD_H + #include "joystick.h" -enum layers { +enum layer_names { NORMAL_LAYER = 0 }; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [NORMAL_LAYER] = LAYOUT( C(S(KC_F1)), C(S(KC_F2)), C(S(KC_F3)), C(S(KC_F4)), - C(S(KC_F5)), C(S(KC_F6)), C(S(KC_F7)), C(S(KC_F8)), - JS_BUTTON0, JS_BUTTON1, JS_BUTTON2, JS_BUTTON3 ), + [NORMAL_LAYER] = LAYOUT( + C(S(KC_F1)), C(S(KC_F2)), C(S(KC_F3)), C(S(KC_F4)), + C(S(KC_F5)), C(S(KC_F6)), C(S(KC_F7)), C(S(KC_F8)), + JS_BUTTON0, JS_BUTTON1, JS_BUTTON2, JS_BUTTON3 + ) }; - - joystick_config_t joystick_axes[JOYSTICK_AXES_COUNT] = { [0] = JOYSTICK_AXIS_IN(F4, 0, 512, 1023), [1] = JOYSTICK_AXIS_IN(F5, 0, 512, 1023), diff --git a/keyboards/handwired/misterdeck/keymaps/default/rules.mk b/keyboards/handwired/misterdeck/keymaps/default/rules.mk new file mode 100644 index 0000000000..9e44c470f2 --- /dev/null +++ b/keyboards/handwired/misterdeck/keymaps/default/rules.mk @@ -0,0 +1 @@ +JOYSTICK_ENABLE = yes -- cgit v1.2.3