process_records.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. #include "ridingqwerty.h"
  3. #if defined(KEYMAP_SAFE_RANGE)
  4. #define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
  5. #else
  6. #define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
  7. #endif
  8. bool process_record_secrets(uint16_t keycode, keyrecord_t *record);
  9. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
  10. enum userspace_custom_keycodes {
  11. VERSION = PLACEHOLDER_SAFE_RANGE,
  12. QWERTY,
  13. DVORAK,
  14. COLEMAK,
  15. #if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE)
  16. GREEK,
  17. RUSSIAN,
  18. RUNES,
  19. HIRAGAN,
  20. #endif
  21. MAKE,
  22. RG_QUOT,
  23. TESTING,
  24. RNGWORD,
  25. CCCV,
  26. SEED,
  27. SARCASM,
  28. VPRWAVE,
  29. STRAYA,
  30. SECRET0,
  31. SECRET1,
  32. SECRET2,
  33. SECRET3,
  34. SECRET4,
  35. SECRET5,
  36. SECRET6,
  37. SECRET7,
  38. SECRET8,
  39. NEW_SAFE_RANGE // start new keyboard-level declarations with NEW_SAFE_RANGE
  40. };
  41. // clang-format off
  42. typedef union {
  43. struct {
  44. uint8_t aesthetic : 1,
  45. spongebob : 1,
  46. uppercase : 1,
  47. australia : 1,
  48. unusued : 4;
  49. };
  50. uint8_t all;
  51. } mode_config_t;
  52. // clang-format on
  53. extern mode_config_t mode;