SDL/src
Sam Lantinga cab1a715f5 Fixed bug 5233 - PS3 Gamepad Motion Control not correctly ignored on Linux
Igor Morgado

PS3 Controller motion sensor string is being reported as

`Gasia Co.,Ltd PS(R) Gamepad Motion Sensors`

But `src/joystick/SDL_gamecontroller.c` line1690 only ignores if matches the string  `Controller Motion Sensors`.

```
#if defined(__LINUX__)
    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
```

Therefore, SDL is mapping 2 Game controllers instead one.

Maybe reduce the substring to match `Motion Sensors` instead.


A simple log from my application is shown below:

INFO: Game controller device 0 - PS3 Controller:PS3 Controller found.
INFO: Controller 0: Player 0: 054c:0268:8111 - PS3 Controller - PS3 Controller - Gasia Co.,Ltd PS(R) Gamepad
INFO: Game controller device 1 - PS3 Controller:PS3 Controller found.
INFO: Controller 1: Player 1: 054c:0268:8111 - PS3 Controller - PS3 Controller - Gasia Co.,Ltd PS(R) Gamepad Motion Sensors
2020-07-15 10:15:52 -07:00
..
atomic
audio Fixed Bluetooth audio output on Apple TV 2020-06-04 12:26:57 -07:00
core core/linux/SDL_threadprio.c: fix build against older glibc versions 2020-06-22 23:24:02 +03:00
cpuinfo fix bug #5228 -- Add AltiVec detection for FreeBSD. 2020-07-11 08:10:02 +03:00
dynapi Add SDL_SIMDRealloc 2020-06-11 12:03:33 -04:00
events If there isn't a GetGlobalMouseState() implementation, fall back to the normal one. 2020-05-26 16:34:50 -07:00
file
filesystem
haptic cmake: Fix building with -DSDL_HAPTIC=Off 2020-07-08 17:28:34 +02:00
hidapi
joystick Fixed bug 5233 - PS3 Gamepad Motion Control not correctly ignored on Linux 2020-07-15 10:15:52 -07:00
libm
loadso
locale locale: Removed unused variable. 2020-05-21 04:01:37 -04:00
main
power
render Fixed iOS build 2020-05-26 13:54:47 -07:00
sensor Fixed bug 5126 - MinGW compile error SDL_windowssensor.c 2020-06-17 10:09:07 -07:00
stdlib Fixed compiler warning building on FreeBSD 2020-05-27 09:22:12 -07:00
test fix watcom build of SDL_test_common.c 2020-06-14 12:05:56 +03:00
thread More Linux fixes. 2020-05-26 13:19:44 -07:00
timer emscripten: Introduce SDL_HINT_EMSCRIPTEN_ASYNCIFY 2020-06-27 16:25:47 -04:00
video Reuse Wayland connection from availability check 2020-07-14 19:18:16 -04:00
SDL.c
SDL_assert.c
SDL_assert_c.h
SDL_dataqueue.c
SDL_dataqueue.h
SDL_error.c
SDL_error_c.h
SDL_hints.c
SDL_hints_c.h
SDL_internal.h
SDL_log.c