mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
deal with controllers that don't have report ids
(cherry picked from commit 1419bcb6cb)
This commit is contained in:
parent
c608ce5acb
commit
2214522b69
1 changed files with 8 additions and 1 deletions
|
|
@ -635,7 +635,14 @@ static bool HIDAPI_DriverPS3ThirdParty_IsSupportedDevice(SDL_HIDAPI_Device *devi
|
|||
// Supported third party controller
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
// Some third party controllers don't have report ids
|
||||
size = ReadFeatureReport(device->dev, 0x00, data, sizeof(data));
|
||||
if (size == 9 && data[2] == 0x26) {
|
||||
// Supported third party controller
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Might be supported by this driver, enumerate and find out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue