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.

41 lines
1.5 KiB

  1. // Copyright (C) 2021 Jerrell, Jacob <@jjerrell>
  2. //
  3. // This file is part of qmk_firmware.
  4. //
  5. // qmk_firmware is free software: you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation, either version 3 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // qmk_firmware is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with qmk_firmware. If not, see <http://www.gnu.org/licenses/>.
  17. #pragma once
  18. #include "jjerrell.h"
  19. #if defined(KEYMAP_SAFE_RANGE)
  20. # define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
  21. #else
  22. # define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
  23. #endif
  24. enum userspace_keycodes {
  25. KC_ARROW = PLACEHOLDER_SAFE_RANGE, // `->`
  26. KC_MAKE, // Runs the keyboard's make command
  27. KC_QWERTY, // Default Layer -> QWERTY
  28. KC_WORKMAN, // Default Layer -> Workman
  29. KC_VRSN, // Print QMK Firmware and board info
  30. RGB_IDL, // Toggle RGB Idle animations
  31. RGB_TGL, // Toggle RGB Layer Indication
  32. KC_CCCV, // One key copy/paste,
  33. KC_GAME, // To game layer. If on game layer, cycle game layers
  34. NEW_SAFE_RANGE // use NEW_SAFE_RANGE for keymap specific codes
  35. };
  36. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);