summary refs log tree commit diff
path: root/quantum/action_code.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-03-11 02:27:29 +0000
committerGitHub <noreply@github.com>2023-03-10 18:27:29 -0800
commita974c51d25411f171ee9271eae50af461640330d (patch)
treee41dcbfb59739c0935d6df4215e750af36ff3ecc /quantum/action_code.h
parent46bbb81dd2aeee48ed571e78d8315bf94cc3cce8 (diff)
Relocate various modifier defines (#18638)
Diffstat (limited to 'quantum/action_code.h')
-rw-r--r--quantum/action_code.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/quantum/action_code.h b/quantum/action_code.h
index 58d929016d..d9a575b518 100644
--- a/quantum/action_code.h
+++ b/quantum/action_code.h
@@ -17,6 +17,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
+#include "modifiers.h"
+
 /** \brief Action codes
  *
  * 16bit code: action_kind(4bit) + action_parameter(12bit)
@@ -160,28 +162,6 @@ typedef union {
 #define ACTION_TRANSPARENT 1
 #define ACTION(kind, param) ((kind) << 12 | (param))
 
-/** \brief Key Actions
- *
- * Mod bits:    43210
- *   bit 0      ||||+- Control
- *   bit 1      |||+-- Shift
- *   bit 2      ||+--- Alt
- *   bit 3      |+---- Gui
- *   bit 4      +----- LR flag(Left:0, Right:1)
- */
-enum mods_bit {
-    MOD_LCTL = 0x01,
-    MOD_LSFT = 0x02,
-    MOD_LALT = 0x04,
-    MOD_LGUI = 0x08,
-    MOD_RCTL = 0x11,
-    MOD_RSFT = 0x12,
-    MOD_RALT = 0x14,
-    MOD_RGUI = 0x18,
-};
-#define MOD_HYPR (MOD_LCTL | MOD_LSFT | MOD_LALT | MOD_LGUI)
-#define MOD_MEH (MOD_LCTL | MOD_LSFT | MOD_LALT)
-
 enum mods_codes {
     MODS_ONESHOT    = 0x00,
     MODS_TAP_TOGGLE = 0x01,