SDL/src/core/linux
Sam Lantinga 67bb882e13 Fixed bug 4707 - SDL_SetRelativeMouseMode fails on Vivante
Cameron Gutman

The bugfix in https://hg.libsdl.org/SDL/rev/ca9417a52f18 caused SDL_SetRelativeMouseMode() to begin failing on Vivante (Steam Link). Even though Vivante doesn't have a SetRelativeMouseMode() or WarpMouse() function, it's in relative mode already (because it uses evdev) so the function was actually working as intended.

I think providing a no-op SetRelativeMouseMode() function for Vivante is a reasonable fix. Since it's already getting relative events through evdev, it really is a no-op to "enter relative mode".

In fact, this is probably the right thing to do for all backends that use evdev (vivante, raspberry, and kmsdrm). Raspberry and kmsdrm both have WarpMouse() implementations so SDL_SetRelativeMouseMode() isn't failing there, but it still seems to make sense not to have to do the fake warping if they're evdev-based anyway.
2019-07-03 15:57:55 -07:00
..
SDL_dbus.c dbus: Don't SimulateUserActivity if we're already inhibiting the screensaver. 2019-07-02 09:43:26 -04:00
SDL_dbus.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_evdev.c Fixed bug 4707 - SDL_SetRelativeMouseMode fails on Vivante 2019-07-03 15:57:55 -07:00
SDL_evdev.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_evdev_kbd.c Removed extraneous fprintf() call 2019-06-17 11:10:20 -07:00
SDL_evdev_kbd.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_evdev_kbd_default_accents.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_evdev_kbd_default_keymap.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_fcitx.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_fcitx.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_ibus.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_ibus.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_ime.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_ime.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_threadprio.c Fixed bug 4667 - Build errors on Linux when building without Threads support 2019-06-17 08:38:33 -07:00
SDL_udev.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_udev.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00