mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
Fixed initializing the PowerA Fusion Pro 4 on Steam Link hardware
(cherry picked from commit 2b484a1ccb)
This commit is contained in:
parent
4361920501
commit
b467276f4a
1 changed files with 8 additions and 2 deletions
|
|
@ -273,8 +273,14 @@ static bool SendSerialRequest(SDL_DriverXboxOne_Context *ctx)
|
|||
|
||||
static bool ControllerSendsAnnouncement(Uint16 vendor_id, Uint16 product_id)
|
||||
{
|
||||
if (vendor_id == USB_VENDOR_PDP && product_id == 0x0246) {
|
||||
// The PDP Rock Candy (PID 0x0246) doesn't send the announce packet on Linux for some reason
|
||||
// The PDP Rock Candy (PID 0x0246) and PowerA Fusion Pro 4 (PID 0x400b)
|
||||
// don't send the announce packet on Linux for some reason.
|
||||
//
|
||||
// Just to be safe and cover future products, we'll always send the startup
|
||||
// protocol sequence for PDP and PowerA controllers
|
||||
if (vendor_id == USB_VENDOR_PDP ||
|
||||
vendor_id == USB_VENDOR_POWERA ||
|
||||
vendor_id == USB_VENDOR_POWERA_ALT) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue