Make the InputEvent device property get saved

Fixes #9299
This commit is contained in:
Bojidar Marinov 2017-06-24 16:28:19 +03:00
parent 00e5ba3143
commit 7542896046
No known key found for this signature in database
GPG Key ID: 4D546A8F1E091856
1 changed files with 2 additions and 0 deletions

View File

@ -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() {