mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-22 11:18:14 +00:00
Added support for the Power A Nintendo Switch Enhanced Wireless Controller
This commit is contained in:
@@ -344,7 +344,7 @@ Android_AddJoystick(int device_id, const char *name, const char *desc, int vendo
|
||||
}
|
||||
|
||||
#ifdef SDL_JOYSTICK_HIDAPI
|
||||
if (HIDAPI_IsDevicePresent(vendor_id, product_id, 0)) {
|
||||
if (HIDAPI_IsDevicePresent(vendor_id, product_id, 0, name)) {
|
||||
/* The HIDAPI driver is taking care of this device */
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user