mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Don't use the HIDAPI driver with Backbone One PlayStation Edition Gen 2
This product doesn't appear to use the DualSense protocol. On Android this shows up as two interfaces that don't send reports that we can parse.
This commit is contained in:
parent
6249bac891
commit
a84dafd5b9
2 changed files with 7 additions and 0 deletions
|
|
@ -298,6 +298,12 @@ static bool HIDAPI_DriverPS5_IsSupportedDevice(SDL_HIDAPI_Device *device, const
|
|||
Uint8 data[USB_PACKET_LENGTH];
|
||||
int size;
|
||||
|
||||
if (vendor_id == USB_VENDOR_BACKBONE &&
|
||||
product_id == USB_PRODUCT_BACKBONE_ONE_PS5_V2) {
|
||||
// This product doesn't appear to use the DualSense protocol
|
||||
return false;
|
||||
}
|
||||
|
||||
if (type == SDL_GAMEPAD_TYPE_PS5) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue