keymap.c (1307B)
1 /* Copyright 2021 Chris Broekema (broekema@gmail.com) 2 * 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17 #include QMK_KEYBOARD_H 18 19 enum layer_names { 20 NORMAL_LAYER = 0 21 }; 22 23 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 24 [NORMAL_LAYER] = LAYOUT( 25 C(S(KC_F1)), C(S(KC_F2)), C(S(KC_F3)), C(S(KC_F4)), 26 C(S(KC_F5)), C(S(KC_F6)), C(S(KC_F7)), C(S(KC_F8)), 27 C(S(KC_F9)), C(S(KC_F10)), C(S(KC_F11)), C(S(KC_F12)) 28 ), 29 }; 30 31 joystick_config_t joystick_axes[JOYSTICK_AXIS_COUNT] = { 32 [0] = JOYSTICK_AXIS_IN(F4, 0, 512, 1023), 33 [1] = JOYSTICK_AXIS_IN(F5, 0, 512, 1023), 34 [2] = JOYSTICK_AXIS_IN(F6, 0, 512, 1023), 35 [3] = JOYSTICK_AXIS_IN(F7, 0, 512, 1023) 36 };