diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-25 10:55:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-25 10:55:03 +0200 |
commit | 8efd835009bdb47670a76432fd128f582ef6be38 (patch) | |
tree | 6d3854c9a4d8ff0ed39ccc6725325ecbd3803ef8 | |
parent | 1b9f31dc158d3c7be60484e5270e059608219a4b (diff) | |
parent | 75428960463254e70d470955c8bdd72e38ce361d (diff) |
Merge pull request #9348 from bojidar-bg/9299-save-device-ids
Make the InputEvent device property get saved
-rw-r--r-- | core/os/input_event.cpp | 2 |
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() { |