mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix Input.get_joy_info() regression
SDL input driver did not have the "xinput_index", "raw_name", "vendor_id" and "product_id" fields for this method and exposed an additional, essentially useless for the users "mapping_handled" field. This commit fixes these issues.
This commit is contained in:
parent
efb40c1524
commit
f28acf97d0
3 changed files with 25 additions and 10 deletions
|
|
@ -599,6 +599,9 @@ void Input::joy_connection_changed(int p_idx, bool p_connected, const String &p_
|
|||
}
|
||||
}
|
||||
}
|
||||
// We don't want this setting to be exposed to the user, because it's not very useful outside of this method.
|
||||
js.info.erase("mapping_handled");
|
||||
|
||||
_set_joypad_mapping(js, mapping);
|
||||
} else {
|
||||
js.connected = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue