Merge pull request #9348 from bojidar-bg/9299-save-device-ids

Make the InputEvent device property get saved
This commit is contained in:
Rémi Verschelde 2017-06-25 10:55:03 +02:00 committed by GitHub
commit 8efd835009

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