Minor tweaks
This commit is contained in:
parent
39adcc0a6b
commit
b7fddb4c0e
4 changed files with 14 additions and 6 deletions
|
@ -535,6 +535,10 @@ HIDAPI_HasConnectedUSBDevice(const char *serial)
|
|||
SDL_HIDAPI_Device *device;
|
||||
|
||||
for (device = SDL_HIDAPI_devices; device; device = device->next) {
|
||||
if (!device->driver) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (device->is_bluetooth) {
|
||||
continue;
|
||||
}
|
||||
|
@ -552,6 +556,10 @@ HIDAPI_DisconnectBluetoothDevice(const char *serial)
|
|||
SDL_HIDAPI_Device *device;
|
||||
|
||||
for (device = SDL_HIDAPI_devices; device; device = device->next) {
|
||||
if (!device->driver) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!device->is_bluetooth) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue