You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
fixes #5464 windows_joystick close_joystick bug
(cherry picked from commit 2511f48339)
This commit is contained in:
committed by
Rémi Verschelde
parent
5184b215a9
commit
8a615b27ad
@@ -281,7 +281,7 @@ void joystick_windows::close_joystick(int id) {
|
||||
d_joysticks[id].attached = false;
|
||||
attached_joysticks[d_joysticks[id].id] = false;
|
||||
d_joysticks[id].guid.Data1 = d_joysticks[id].guid.Data2 = d_joysticks[id].guid.Data3 = 0;
|
||||
input->joy_connection_changed(id, false, "");
|
||||
input->joy_connection_changed(d_joysticks[id].id, false, "");
|
||||
joystick_count--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user