summaryrefslogtreecommitdiffstats
path: root/core/core_constants.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-29 13:15:42 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-29 13:15:42 +0100
commitf220d46cdccb15f1aa141cd89c9dacee85b1b6ec (patch)
treebd02a89eb9942b5e6e6b54335ad750661502bc86 /core/core_constants.cpp
parent17e7f85c06366b427e5068c5b3e2940e27ff5f1d (diff)
parent8406e60522bb8d09649193be43c1c819edc1d059 (diff)
downloadredot-engine-f220d46cdccb15f1aa141cd89c9dacee85b1b6ec.tar.gz
Merge pull request #80231 from romlok/input-key-location
Support detecting and mapping ctrl/alt/shift/meta by their left/right physical location
Diffstat (limited to 'core/core_constants.cpp')
-rw-r--r--core/core_constants.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/core_constants.cpp b/core/core_constants.cpp
index 3b96fc20c6..aaabbabfd9 100644
--- a/core/core_constants.cpp
+++ b/core/core_constants.cpp
@@ -507,6 +507,10 @@ void register_global_constants() {
BIND_CORE_BITFIELD_CLASS_FLAG(KeyModifierMask, KEY_MASK, KPAD);
BIND_CORE_BITFIELD_CLASS_FLAG(KeyModifierMask, KEY_MASK, GROUP_SWITCH);
+ BIND_CORE_ENUM_CLASS_CONSTANT(KeyLocation, KEY_LOCATION, UNSPECIFIED);
+ BIND_CORE_ENUM_CLASS_CONSTANT(KeyLocation, KEY_LOCATION, LEFT);
+ BIND_CORE_ENUM_CLASS_CONSTANT(KeyLocation, KEY_LOCATION, RIGHT);
+
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, NONE);
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, LEFT);
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, RIGHT);