summaryrefslogtreecommitdiff
path: root/core/os/input_event.cpp
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2017-06-24 16:28:19 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2017-06-24 16:28:19 +0300
commit75428960463254e70d470955c8bdd72e38ce361d (patch)
treee6a21e1bc5e128d4cd16b9ca541419e1f165c2d8 /core/os/input_event.cpp
parent00e5ba314393ce2cc4df883bc1742306007ed117 (diff)
Make the InputEvent device property get saved
Fixes #9299
Diffstat (limited to 'core/os/input_event.cpp')
-rw-r--r--core/os/input_event.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/input_event.cpp b/core/os/input_event.cpp
index e60f588be3..1c575aa970 100644
--- a/core/os/input_event.cpp
+++ b/core/os/input_event.cpp
@@ -140,6 +140,8 @@ void InputEvent::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_action_type"), &InputEvent::is_action_type);
ClassDB::bind_method(D_METHOD("xformed_by:InputEvent", "xform", "local_ofs"), &InputEvent::xformed_by, DEFVAL(Vector2()));
+
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "device"), "set_device", "get_device");
}
InputEvent::InputEvent() {