mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
Catch both PS3 and PS4 motion controls and don't treat them as a game controller
This commit is contained in:
@@ -1494,8 +1494,8 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
|
|||||||
Uint32 vidpid;
|
Uint32 vidpid;
|
||||||
|
|
||||||
#if defined(__LINUX__)
|
#if defined(__LINUX__)
|
||||||
if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) {
|
if (name && SDL_strstr(name, "Controller Motion Sensors")) {
|
||||||
/* Don't treat the PS4 motion controls as a separate game controller */
|
/* Don't treat the PS3 and PS4 motion controls as a separate game controller */
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user