Added support for the NVIDIA SHIELD controller v1.03 to the HIDAPI driver
This commit is contained in:
parent
20beed3029
commit
a6018ae57f
5 changed files with 171 additions and 16 deletions
|
@ -1038,6 +1038,14 @@ HIDAPI_IsEquivalentToDevice(Uint16 vendor_id, Uint16 product_id, SDL_HIDAPI_Devi
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (vendor_id == USB_VENDOR_NVIDIA) {
|
||||
/* If we're looking for the NVIDIA SHIELD controller Xbox interface, match it against any NVIDIA SHIELD controller */
|
||||
if (product_id == 0xb400 &&
|
||||
device->type == SDL_CONTROLLER_TYPE_NVIDIA_SHIELD) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue