mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-12-19 08:47:04 +00:00
Recover from Bluetooth devices temporarily out of range
This commit is contained in:
parent
6d012b2a5d
commit
1db7d33dc4
@ -1111,6 +1111,8 @@ HIDAPI_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
||||
hwdata->device = device;
|
||||
|
||||
if (!device->driver->OpenJoystick(device, joystick)) {
|
||||
/* The open failed, mark this device as disconnected and update devices */
|
||||
HIDAPI_JoystickDisconnected(device, joystickID);
|
||||
SDL_free(hwdata);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user