Added feature support for the Razer Raiju to the HIDAPI driver

This commit is contained in:
Sam Lantinga
2022-09-23 09:10:51 -07:00
parent 5ea9886bcf
commit c2ae2ccc32
2 changed files with 6 additions and 1 deletions

View File

@@ -309,6 +309,10 @@ HIDAPI_DriverPS4_InitDevice(SDL_HIDAPI_Device *device)
ctx->effects_supported = SDL_TRUE;
ctx->sensors_supported = SDL_TRUE;
ctx->touchpad_supported = SDL_TRUE;
} else if (device->vendor_id == USB_VENDOR_RAZER && device->product_id == USB_PRODUCT_RAZER_RAIJU) {
/* This doesn't respond to the detection protocol, but has a touchpad and vibration */
ctx->effects_supported = SDL_TRUE;
ctx->touchpad_supported = SDL_TRUE;
} else if ((size = ReadFeatureReport(device->dev, k_ePS4FeatureReportIdCapabilities, data, sizeof(data))) == 48 &&
data[2] == 0x27) {
Uint8 capabilities = data[4];