Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Clear joypad touchpad info after disconnecting

Nintorch73cc6bb63102
diff --git a/core/input/input.cpp b/core/input/input.cpp
index 3c8ddd54b9a..23332b06a44 100644
--- a/core/input/input.cpp
+++ b/core/input/input.cpp
@@ -754,6 +754,7 @@ void Input::joy_connection_changed(int p_idx, bool p_connected, const String &p_
delete motion->gamepad_motion;
}
joy_motion.erase(p_idx);
+ joy_touch.erase(p_idx);
}
joy_names[p_idx] = js;