process_records.h 988 B

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