Ryujinx-SDL/src/video/x11
Sam Lantinga a4cfa93670 Fixed bug 2293 - Precise scrolling events
Martijn Courteaux

I implemented precise scrolling events. I have been through all the folders in /src/video/[platform] to implement where possible. This works on OS X, but I can't speak for others. Build farm will figure that out, I guess. I think this patch should introduce precise scrolling on OS X, Wayland, Mir, Windows, Android, Nacl, Windows RT.

The way I provide precise scrolling events is by adding two float fields to the SDL_MouseWheelScrollEvent datastructure, called "preciseX" and "preciseY". The old integer fields "x" and "y" are still present. The idea is that every platform specific code normalises the scroll amounts and forwards them to the SDL_SendMouseWheel function. It is this function that will now accumulate these (using a static variable, as I have seen how it was implemented in the Windows specific code) and once we hit a unit size, set the traditional integer "x" and "y" fields.

I believe this is pretty solid way of doing it, although I'm not the expert here.

There is also a fix in the patch for a typo recently introduced, that might need to be taken away by the time anybody merges this in. There is also a file in Nacl which I have stripped a horrible amount of trailing whitespaces. (Leave that part out if you want).
2017-08-14 21:28:04 -07:00
..
edid-parse.c Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
edid.h Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
imKStoUCS.c x11: Updated imKStoUCS.* to latest from x.org. 2016-02-08 01:08:21 -05:00
imKStoUCS.h x11: Updated imKStoUCS.* to latest from x.org. 2016-02-08 01:08:21 -05:00
SDL_x11clipboard.c x11: Make a separate unmapped window to own clipboard selections. 2017-07-31 13:49:22 -04:00
SDL_x11clipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11dyn.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11dyn.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11events.c Fixed bug 2293 - Precise scrolling events 2017-08-14 21:28:04 -07:00
SDL_x11events.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11framebuffer.c Fixed bug 1859 - No SDL_VIDEORESIZE event generated when the window manager sets the window size. 2017-04-03 13:32:53 -07:00
SDL_x11framebuffer.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11keyboard.c Changed messages about not recognized keys to include discourse link. 2017-05-26 22:45:52 +02:00
SDL_x11keyboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11messagebox.c x11: Patched to compile. 2017-08-13 01:00:01 -04:00
SDL_x11messagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11modes.c Fixed bug 3722 - Fall back to xinerama/xvidmode if xrandr modes initialization fails 2017-08-02 10:28:13 -07:00
SDL_x11modes.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11mouse.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11mouse.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11opengl.c Removed newlines from error messages. 2017-03-26 21:00:19 +02:00
SDL_x11opengl.h Fixed comment 2017-01-13 11:37:12 -08:00
SDL_x11opengles.c Fixed bug 3690 - SDL2 KMS/DRM render context support 2017-08-02 10:22:48 -07:00
SDL_x11opengles.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11shape.c Removed unused internal window shape functions. 2017-05-25 23:00:43 +02:00
SDL_x11shape.h Removed unused internal window shape functions. 2017-05-25 23:00:43 +02:00
SDL_x11sym.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11touch.c Fixed bug 3583 - X11 touch device can be permanently lost 2017-02-11 11:14:48 -08:00
SDL_x11touch.h Fixed bug 3583 - X11 touch device can be permanently lost 2017-02-11 11:14:48 -08:00
SDL_x11video.c Fixed bug 3742 - minor warning fixes 2017-08-13 21:16:58 -07:00
SDL_x11video.h x11: Make a separate unmapped window to own clipboard selections. 2017-07-31 13:49:22 -04:00
SDL_x11window.c Fixed bug 2500 - X11: SDL tries (and fails) to hide foreign windows 2017-08-14 10:28:47 -07:00
SDL_x11window.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11xinput2.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11xinput2.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00