Skip to content

Commit

Permalink
Handle both "Sony Interactive Intertainment" and "Sony Computer Enter…
Browse files Browse the repository at this point in the history
…tainment" when ignoring motion sensors
  • Loading branch information
slouken committed Dec 12, 2018
1 parent 71b6645 commit 98829d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_gamecontroller.c
Expand Up @@ -1469,7 +1469,7 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
Uint32 vidpid;

#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 */
return SDL_TRUE;
}
Expand Down

0 comments on commit 98829d3

Please sign in to comment.