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