summaryrefslogtreecommitdiffstats
path: root/core/input/input_event.cpp
diff options
context:
space:
mode:
authorSpartan322 <Megacake1234@gmail.com>2024-11-20 16:20:16 -0500
committerSpartan322 <Megacake1234@gmail.com>2024-11-20 18:02:42 -0500
commit9857e4762b8d076259c4be863ba9f53df306d940 (patch)
treeb03c5b5de96e29ffb7e1b008912d21aba5629bc5 /core/input/input_event.cpp
parentfd9045fe09e9bea691f0169c16d45cbebddb6bba (diff)
parent9e6098432aac35bae42c9089a29ba2a80320d823 (diff)
downloadredot-engine-9857e4762b8d076259c4be863ba9f53df306d940.tar.gz
Merge commit godotengine/godot@9e6098432aac35bae42c9089a29ba2a80320d823
Diffstat (limited to 'core/input/input_event.cpp')
-rw-r--r--core/input/input_event.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp
index e580ea185d..2871ef24dd 100644
--- a/core/input/input_event.cpp
+++ b/core/input/input_event.cpp
@@ -37,6 +37,9 @@
#include "core/os/keyboard.h"
#include "core/os/os.h"
+const int InputEvent::DEVICE_ID_EMULATION = -1;
+const int InputEvent::DEVICE_ID_INTERNAL = -2;
+
void InputEvent::set_device(int p_device) {
device = p_device;
emit_changed();