Romain Vimont 07d5a6ca80 Add connected gamepads on start
Trigger SDL_CONTROLLERDEVICEADDED for all gamepads already connected
when scrcpy starts. We want to handle both the gamepads initially
connected and the gamepads connected while scrcpy is running.

It is a bit racy, because a device may be added after the controller
subsystem initialization, but before the call to list the joysticks. In
that case, a single device may in theory be detected as added twice.
This should be harmless though (the second initialization will just fail
without major impact).
2024-09-07 23:24:15 +02:00
..
2024-07-19 17:48:39 +02:00
2024-08-01 18:15:37 +02:00
2024-09-07 23:24:15 +02:00
2024-06-23 19:15:45 +02:00
2024-09-07 22:03:27 +02:00
2024-08-02 22:32:04 +02:00