Display and control your Android device
Fix initial gamepad detection
Romain Vimont907aba2d7920
diff --git a/app/src/scrcpy.c b/app/src/scrcpy.cindex 7738800a..e90ac373 100644--- a/app/src/scrcpy.c+++ b/app/src/scrcpy.c@@ -296,7 +296,7 @@ init_sdl_gamepads(void) {if (SDL_IsGamepad(joystick)) {SDL_Event event;event.gdevice.type = SDL_EVENT_GAMEPAD_ADDED;- event.gdevice.which = i;+ event.gdevice.which = joystick;SDL_PushEvent(&event);}}