Skip to content

Commit

Permalink
Catch both PS3 and PS4 motion controls and don't treat them as a game…
Browse files Browse the repository at this point in the history
… controller
  • Loading branch information
slouken committed Feb 5, 2020
1 parent 1d1a35e commit dc1d3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/SDL_gamecontroller.c
Expand Up @@ -1494,8 +1494,8 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
Uint32 vidpid;

#if defined(__LINUX__)
if (name && SDL_strstr(name, "Wireless Controller Motion Sensors")) {
/* Don't treat the PS4 motion controls as a separate game controller */
if (name && SDL_strstr(name, "Controller Motion Sensors")) {
/* Don't treat the PS3 and PS4 motion controls as a separate game controller */
return SDL_TRUE;
}
#endif
Expand Down

0 comments on commit dc1d3c2

Please sign in to comment.