1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Android: Include Joysticks/Gamepads which are available on app start.

This commit is contained in:
wombatstampede
2019-05-03 15:56:44 +02:00
parent b71254a861
commit 6e46701e64
5 changed files with 61 additions and 24 deletions

View File

@@ -251,6 +251,10 @@ int OS_Android::get_mouse_button_state() const {
}
void OS_Android::set_window_title(const String &p_title) {
//This queries/updates the currently connected devices/joypads
//Set_window_title is called when initializing the main loop (main.cpp)
//therefore this place is found to be suitable (I found no better).
godot_java->init_input_devices();
}
void OS_Android::set_video_mode(const VideoMode &p_video_mode, int p_screen) {