Minor tweaks

This commit is contained in:
Sam Lantinga
2022-09-26 14:39:51 -07:00
parent 39adcc0a6b
commit b7fddb4c0e
4 changed files with 14 additions and 6 deletions

View File

@@ -2077,8 +2077,8 @@ HIDAPI_DriverSwitch_UpdateDevice(SDL_HIDAPI_Device *device)
Uint32 now;
/* 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);
}