process_records.h 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include "quantum.h"
  3. #define RIS_ESC LT(_RAISE, KC_ESC)
  4. #define RIS_CAPS LT(_RAISE, KC_CAPS)
  5. #ifdef TAP_DANCE_ENABLE
  6. #include "process_tap_dance.h"
  7. //Tap Dance Declarations
  8. enum {
  9. COMM_QUOT = 0,
  10. BACKSPACE,
  11. TAP_TAB,
  12. CTRL_MINUS,
  13. CTRL_PLUS
  14. };
  15. #define TD_COMM TD(COMM_QUOT)
  16. #define TD_BSPC TD(BACKSPACE)
  17. #define TD_TAB TD(TAP_TAB)
  18. #define TD_LCTL TD(CTRL_MINUS)
  19. #define TD_RCTL TD(CTRL_PLUS)
  20. #else
  21. #define TD_COMM KC_COMM
  22. #define TD_BSPC KC_BSPACE
  23. #define TD_TAB KC_TAB
  24. #define TD_LCTL KC_LCTL
  25. #define TD_RCTL KC_RCTL
  26. #endif
  27. enum layer_number {
  28. _QWERTY = 0,
  29. _GAME,
  30. _LOWER,
  31. _RAISE,
  32. _ADJUST
  33. };
  34. enum custom_keycodes {
  35. QWERTY = SAFE_RANGE,
  36. GAME,
  37. LOWER,
  38. RAISE,
  39. RGBRST
  40. };
  41. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
  42. bool process_record_rgb(uint16_t keycode, keyrecord_t *record);