src/joystick/linux/SDL_sysjoystick.c
changeset 11201 813a8510bd0c
parent 11094 093b58f5de3c
child 11532 4af4e3986438
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Wed Aug 09 11:58:38 2017 -0700
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Wed Aug 09 11:59:29 2017 -0700
     1.3 @@ -233,6 +233,10 @@
     1.4          SDL_strlcpy((char*)guid16, namebuf, sizeof(guid->data) - 4);
     1.5      }
     1.6  
     1.7 +    if (SDL_IsGameControllerNameAndGUID(namebuf, *guid) &&
     1.8 +        SDL_ShouldIgnoreGameController(namebuf, *guid)) {
     1.9 +        return 0;
    1.10 +    }
    1.11      return 1;
    1.12  }
    1.13