keymap.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #include QMK_KEYBOARD_H
  17. enum layer_names {
  18. NORMAL_LAYER = 0
  19. };
  20. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  21. [NORMAL_LAYER] = LAYOUT(
  22. C(S(KC_F1)), C(S(KC_F2)), C(S(KC_F3)), C(S(KC_F4)),
  23. C(S(KC_F5)), C(S(KC_F6)), C(S(KC_F7)), C(S(KC_F8)),
  24. JS_0, JS_1, JS_2, JS_3
  25. )
  26. };
  27. joystick_config_t joystick_axes[JOYSTICK_AXIS_COUNT] = {
  28. [0] = JOYSTICK_AXIS_IN(F4, 0, 512, 1023),
  29. [1] = JOYSTICK_AXIS_IN(F5, 0, 512, 1023),
  30. [2] = JOYSTICK_AXIS_IN(F6, 0, 512, 1023),
  31. [3] = JOYSTICK_AXIS_IN(F7, 0, 512, 1023)
  32. };