summaryrefslogtreecommitdiff
path: root/keyboards/handwired/misterdeck/keymaps/nobuttons
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-03-08 22:07:48 +0000
committerQMK Bot <hello@qmk.fm>2022-03-08 22:07:48 +0000
commit7f8f66512cea637a7b62f027ef332f774cfc64ad (patch)
tree83b437b43f0fa51a8a254c4f989149742ceb139e /keyboards/handwired/misterdeck/keymaps/nobuttons
parentd4bf9b1cc1e49f4bed4fa55883aabcb21cad0218 (diff)
parent3347b63d83d019219770f55627f3d5136806bb5c (diff)
downloadqmk_firmware-7f8f66512cea637a7b62f027ef332f774cfc64ad.tar.gz
qmk_firmware-7f8f66512cea637a7b62f027ef332f774cfc64ad.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/misterdeck/keymaps/nobuttons')
-rw-r--r--keyboards/handwired/misterdeck/keymaps/nobuttons/config.h31
-rw-r--r--keyboards/handwired/misterdeck/keymaps/nobuttons/keymap.c13
-rw-r--r--keyboards/handwired/misterdeck/keymaps/nobuttons/rules.mk1
3 files changed, 23 insertions, 22 deletions
diff --git a/keyboards/handwired/misterdeck/keymaps/nobuttons/config.h b/keyboards/handwired/misterdeck/keymaps/nobuttons/config.h
index bd150139c1..f609bf2962 100644
--- a/keyboards/handwired/misterdeck/keymaps/nobuttons/config.h
+++ b/keyboards/handwired/misterdeck/keymaps/nobuttons/config.h
@@ -1,20 +1,19 @@
/*
-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
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
+ * 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
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#pragma once
diff --git a/keyboards/handwired/misterdeck/keymaps/nobuttons/keymap.c b/keyboards/handwired/misterdeck/keymaps/nobuttons/keymap.c
index fbeb636cf2..d4c52be35d 100644
--- a/keyboards/handwired/misterdeck/keymaps/nobuttons/keymap.c
+++ b/keyboards/handwired/misterdeck/keymaps/nobuttons/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)),
- C(S(KC_F9)), C(S(KC_F10)), C(S(KC_F11)), C(S(KC_F12))),
+ [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)),
+ C(S(KC_F9)), C(S(KC_F10)), C(S(KC_F11)), C(S(KC_F12))
+ ),
};
-
-
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/nobuttons/rules.mk b/keyboards/handwired/misterdeck/keymaps/nobuttons/rules.mk
new file mode 100644
index 0000000000..9e44c470f2
--- /dev/null
+++ b/keyboards/handwired/misterdeck/keymaps/nobuttons/rules.mk
@@ -0,0 +1 @@
+JOYSTICK_ENABLE = yes