mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-09 21:45:37 +00:00
Don't show the Razer Raiju sound interface as a game controller
This commit is contained in:
parent
90a5607d32
commit
5ef8eb49be
|
@ -216,9 +216,11 @@ static uint8_t GetPlaystationVolumeFromFloat(float fVolume)
|
||||||
static SDL_bool
|
static SDL_bool
|
||||||
HIDAPI_DriverPS4_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, Uint16 usage_page, Uint16 usage)
|
HIDAPI_DriverPS4_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, Uint16 usage_page, Uint16 usage)
|
||||||
{
|
{
|
||||||
/* The Revolution Pro Controller exposes multiple interfaces on Windows */
|
/* The Revolution Pro Controller and Razer Raiju expose multiple interfaces on Windows */
|
||||||
const Uint16 NACON_USB_VID = 0x146b;
|
const Uint16 NACON_USB_VID = 0x146b;
|
||||||
if (vendor_id == NACON_USB_VID && usage_page != 0 && usage_page != 1) {
|
const Uint16 RAZER_USB_VID = 0x1532;
|
||||||
|
if ((vendor_id == NACON_USB_VID || vendor_id == RAZER_USB_VID) &&
|
||||||
|
(usage_page != 0 && usage_page != 1)) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue