mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 13:09:11 +00:00
Handle both "Sony Interactive Intertainment" and "Sony Computer Entertainment" when ignoring motion sensors
This commit is contained in:
parent
71b6645177
commit
98829d37e8
1 changed files with 1 additions and 1 deletions
|
@ -1469,7 +1469,7 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
|
||||||
Uint32 vidpid;
|
Uint32 vidpid;
|
||||||
|
|
||||||
#if defined(__LINUX__)
|
#if defined(__LINUX__)
|
||||||
if (name && SDL_strcmp(name, "Sony Interactive Entertainment Wireless Controller Motion Sensors") == 0) {
|
if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) {
|
||||||
/* Don't treat the PS4 motion controls as a separate game controller */
|
/* Don't treat the PS4 motion controls as a separate game controller */
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue