Fixed HIDAPI PS4 controller being picked up when running under Steam

Input with PS4 configuration enabled
This commit is contained in:
Sam Lantinga 2022-05-19 16:49:47 -07:00
parent 83ae1b4987
commit b1cf322971
2 changed files with 2 additions and 9 deletions

View file

@ -134,14 +134,8 @@ HIDAPI_GetDeviceDriver(SDL_HIDAPI_Device *device)
const Uint16 USAGE_MULTIAXISCONTROLLER = 0x0008;
int i;
SDL_GameControllerType type;
SDL_JoystickGUID check_guid;
/* Make sure we have a generic GUID here, otherwise if we pass a HIDAPI
guid, this call will create a game controller mapping for the device.
*/
check_guid = device->guid;
check_guid.data[14] = 0;
if (SDL_ShouldIgnoreJoystick(device->name, check_guid)) {
if (SDL_ShouldIgnoreJoystick(device->name, device->guid)) {
return NULL;
}