]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/xulkal/process_records.h
[Keymap] Update Xulkal user code (#5920)
[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 #define QWERTY DF(_QWERTY)
8
9 #ifndef GAMELAYER_DISABLE
10 #define GAME DF(_GAME)
11 #else
12 #define GAME KC_TRANSPARENT
13 #endif
14
15 #define LOWER MO(_LOWER)
16 #define RAISE MO(_RAISE)
17
18 #ifdef TAP_DANCE_ENABLE
19 #include "process_tap_dance.h"
20
21 //Tap Dance Declarations
22 enum {
23   COMM_QUOT = 0,
24   BACKSPACE,
25   TAP_TAB,
26   CTRL_MINUS,
27   CTRL_PLUS
28 };
29
30 #define TD_COMM TD(COMM_QUOT)
31 #define TD_BSPC TD(BACKSPACE)
32 #define TD_TAB TD(TAP_TAB)
33 #define TD_LCTL TD(CTRL_MINUS)
34 #define TD_RCTL TD(CTRL_PLUS)
35 #else
36 #define TD_COMM KC_COMM
37 #define TD_BSPC KC_BSPACE
38 #define TD_TAB KC_TAB
39 #define TD_LCTL KC_LCTL
40 #define TD_RCTL KC_RCTL
41 #endif
42
43 enum layer_number {
44     _QWERTY = 0,
45 #ifndef GAMELAYER_DISABLE
46     _GAME,
47 #endif
48     _LOWER,
49     _RAISE,
50 #ifdef TRILAYER_ENABLED
51     _ADJUST
52 #endif
53 };
54
55 enum custom_keycodes {
56   RGBRST = SAFE_RANGE
57 };
58
59 bool process_record_keymap(uint16_t keycode, keyrecord_t *record);