sdl2_frt/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 Add basic support for compiling on RISC OS 2020-02-13 20:50:47 +00:00
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 Fixed compile warning 2020-02-10 13:59:05 -08:00
filesystem Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
haptic cmake: Fix building with -DSDL_HAPTIC=Off 2020-07-08 17:28:34 +02:00
hidapi hid: Add Microsoft Precision Mouse to the joystick blacklist. 2020-05-06 03:18:25 -04:00
joystick Fixed bug 5233 - PS3 Gamepad Motion Control not correctly ignored on Linux 2020-07-15 10:15:52 -07:00
libm Fixed compiler warning 2020-01-29 20:09:16 -08:00
loadso Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
locale locale: Removed unused variable. 2020-05-21 04:01:37 -04:00
main locale: Implemented SDL_GetPreferredLocales(). 2020-05-04 02:27:29 -04:00
power Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
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 X11 connection from availability check 2020-07-14 21:13:27 -04:00
SDL_assert_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error_c.h SDL_error: simplified error string management. 2020-04-21 01:30:36 -04:00
SDL_error.c SDL_error: simplified error string management. 2020-04-21 01:30:36 -04:00
SDL_hints_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_internal.h Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
SDL_log.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00