process_records.h 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef GAMELAYER_DISABLE
  30. _GAME,
  31. #endif
  32. _LOWER,
  33. _RAISE,
  34. #ifdef TRILAYER_ENABLED
  35. _ADJUST
  36. #endif
  37. };
  38. enum custom_keycodes {
  39. QWERTY = SAFE_RANGE,
  40. GAME,
  41. LOWER,
  42. RAISE,
  43. RGBRST
  44. };
  45. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
  46. bool process_record_rgb(uint16_t keycode, keyrecord_t *record);