You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. /* Copyright 2021 SethBarberee <seth.barberee@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. #pragma once
  17. #include QMK_KEYBOARD_H
  18. #include "wrappers.h"
  19. enum layers {
  20. _QWERTY,
  21. _LOWER,
  22. _RAISE,
  23. _ADJUST
  24. };
  25. enum userspace_keycodes {
  26. KC_VRSN = SAFE_RANGE,
  27. NEW_SAFE_RANGE
  28. };
  29. #define KC_LOWR MO(_LOWER)
  30. #define KC_RASE MO(_RAISE)
  31. #ifdef TAP_DANCE_ENABLE
  32. # include "tap_dance.h"
  33. #endif
  34. #ifdef RGBLIGHT_ENABLE
  35. # include "rgb_light.h"
  36. #endif
  37. void keyboard_pre_init_keymap(void);
  38. void keyboard_post_init_keymap(void);
  39. void suspend_power_down_keymap(void);
  40. void suspend_wakeup_init_keymap(void);
  41. layer_state_t layer_state_set_keymap (layer_state_t state);
  42. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);