summaryrefslogtreecommitdiff
path: root/quantum/quantum_keycodes_legacy.h
blob: 260ac1c8a443ffcf75fb36a56a2651d3624300ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once

// clang-format off

// Deprecated Quantum keycodes
#define SH_TG QK_SWAP_HANDS_TOGGLE
#define SQ_TOG QK_SEQUENCER_TOGGLE

#define MAGIC_SWAP_CONTROL_CAPSLOCK      QK_MAGIC_SWAP_CONTROL_CAPS_LOCK
#define MAGIC_UNSWAP_CONTROL_CAPSLOCK    QK_MAGIC_UNSWAP_CONTROL_CAPS_LOCK
#define MAGIC_TOGGLE_CONTROL_CAPSLOCK    QK_MAGIC_TOGGLE_CONTROL_CAPS_LOCK
#define MAGIC_UNCAPSLOCK_TO_CONTROL      QK_MAGIC_CAPS_LOCK_AS_CONTROL_OFF
#define MAGIC_CAPSLOCK_TO_CONTROL        QK_MAGIC_CAPS_LOCK_AS_CONTROL_ON
#define MAGIC_SWAP_LALT_LGUI             QK_MAGIC_SWAP_LALT_LGUI
#define MAGIC_UNSWAP_LALT_LGUI           QK_MAGIC_UNSWAP_LALT_LGUI
#define MAGIC_SWAP_RALT_RGUI             QK_MAGIC_SWAP_RALT_RGUI
#define MAGIC_UNSWAP_RALT_RGUI           QK_MAGIC_UNSWAP_RALT_RGUI
#define MAGIC_UNNO_GUI                   QK_MAGIC_GUI_ON
#define MAGIC_NO_GUI                     QK_MAGIC_GUI_OFF
#define MAGIC_TOGGLE_GUI                 QK_MAGIC_TOGGLE_GUI
#define MAGIC_SWAP_GRAVE_ESC             QK_MAGIC_SWAP_GRAVE_ESC
#define MAGIC_UNSWAP_GRAVE_ESC           QK_MAGIC_UNSWAP_GRAVE_ESC
#define MAGIC_SWAP_BACKSLASH_BACKSPACE   QK_MAGIC_SWAP_BACKSLASH_BACKSPACE
#define MAGIC_UNSWAP_BACKSLASH_BACKSPACE QK_MAGIC_UNSWAP_BACKSLASH_BACKSPACE
#define MAGIC_TOGGLE_BACKSLASH_BACKSPACE QK_MAGIC_TOGGLE_BACKSLASH_BACKSPACE
#define MAGIC_HOST_NKRO                  QK_MAGIC_NKRO_ON
#define MAGIC_UNHOST_NKRO                QK_MAGIC_NKRO_OFF
#define MAGIC_TOGGLE_NKRO                QK_MAGIC_TOGGLE_NKRO
#define MAGIC_SWAP_ALT_GUI               QK_MAGIC_SWAP_ALT_GUI
#define MAGIC_UNSWAP_ALT_GUI             QK_MAGIC_UNSWAP_ALT_GUI
#define MAGIC_TOGGLE_ALT_GUI             QK_MAGIC_TOGGLE_ALT_GUI
#define MAGIC_SWAP_LCTL_LGUI             QK_MAGIC_SWAP_LCTL_LGUI
#define MAGIC_UNSWAP_LCTL_LGUI           QK_MAGIC_UNSWAP_LCTL_LGUI
#define MAGIC_SWAP_RCTL_RGUI             QK_MAGIC_SWAP_RCTL_RGUI
#define MAGIC_UNSWAP_RCTL_RGUI           QK_MAGIC_UNSWAP_RCTL_RGUI
#define MAGIC_SWAP_CTL_GUI               QK_MAGIC_SWAP_CTL_GUI
#define MAGIC_UNSWAP_CTL_GUI             QK_MAGIC_UNSWAP_CTL_GUI
#define MAGIC_TOGGLE_CTL_GUI             QK_MAGIC_TOGGLE_CTL_GUI
#define MAGIC_EE_HANDS_LEFT              QK_MAGIC_EE_HANDS_LEFT
#define MAGIC_EE_HANDS_RIGHT             QK_MAGIC_EE_HANDS_RIGHT
#define MAGIC_SWAP_ESCAPE_CAPSLOCK       QK_MAGIC_SWAP_ESCAPE_CAPS_LOCK
#define MAGIC_UNSWAP_ESCAPE_CAPSLOCK     QK_MAGIC_UNSWAP_ESCAPE_CAPS_LOCK
#define MAGIC_TOGGLE_ESCAPE_CAPSLOCK     QK_MAGIC_TOGGLE_ESCAPE_CAPS_LOCK

#define LCG_SWP QK_MAGIC_SWAP_LCTL_LGUI
#define LCG_NRM QK_MAGIC_UNSWAP_LCTL_LGUI
#define RCG_SWP QK_MAGIC_SWAP_RCTL_RGUI
#define RCG_NRM QK_MAGIC_UNSWAP_RCTL_RGUI
#define LAG_SWP QK_MAGIC_SWAP_LALT_LGUI
#define LAG_NRM QK_MAGIC_UNSWAP_LALT_LGUI
#define RAG_SWP QK_MAGIC_SWAP_RALT_RGUI
#define RAG_NRM QK_MAGIC_UNSWAP_RALT_RGUI
#define GUI_ON  QK_MAGIC_GUI_ON
#define GUI_OFF QK_MAGIC_GUI_OFF
#define GUI_TOG QK_MAGIC_TOGGLE_GUI

#define X(i) UM(i)
#define XP(i, j) UP(i, j)