mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
Minor tweaks
This commit is contained in:
@@ -1266,8 +1266,8 @@ HIDAPI_DriverPS5_UpdateDevice(SDL_HIDAPI_Device *device)
|
||||
int packet_count = 0;
|
||||
|
||||
/* Reconnect the Bluetooth device once the USB device is gone */
|
||||
if (device->is_bluetooth &&
|
||||
device->num_joysticks == 0 &&
|
||||
if (device->num_joysticks == 0 &&
|
||||
device->is_bluetooth &&
|
||||
!HIDAPI_HasConnectedUSBDevice(device->serial)) {
|
||||
HIDAPI_JoystickConnected(device, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user