scummvm/backends/events
Thierry Crozat a20d2172fa SDL: Respect OS setting for wheel scroll direction on SDL 2.0.4+
The setting was already respected on SDL < 2.0.4 (such as SDL1).
If the OS inverts the scrolling direction, this is reflected on the sign
of the y value of the SDL event. Since version 2.0.4 the SDL event
also had a flag to indicate if the direction is flipped and we were
using it to change back the y sign. That means the OS scrolling
direction setting was not respected. With this commit we now have
a consistent behaviour with all SDL versions (the OS scroll direction
setting is respected).

If our wheel events are used for something other than scrolling
however, we might want to get the actually wheel move direction
(i.e. use a Common::EVENT_WHEELDOWN when moving the wheel
down even if the OS scroll setting is to flip it). In such a case we
might want to revert this change and instead add an additional flag
to the event so that we know the scroll direction should be flipped
and use it in places where the event is used for scrolling.
2017-03-21 21:06:35 +00:00
..
androidsdl SDL: Always use sub-pixel joystick pointer resolution 2017-03-01 09:55:20 -06:00
default BACKENDS: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
dinguxsdl SDL: Cleanup, replaced _km.multiplier with #define 2017-02-18 18:20:10 -06:00
gph SDL: Always use sub-pixel joystick pointer resolution 2017-03-01 09:55:20 -06:00
linuxmotosdl SDL: Cleanup, replaced _km.multiplier with #define 2017-02-18 18:20:10 -06:00
maemosdl SDL: Cleanup, replaced _km.multiplier with #define 2017-02-18 18:20:10 -06:00
openpandora SDL: Always use sub-pixel joystick pointer resolution 2017-03-01 09:55:20 -06:00
ps3sdl SDL: Cleanup, replaced _km.multiplier with #define 2017-02-18 18:20:10 -06:00
psp2sdl PSP2: Add Playstation Vita (PSP2) support 2017-03-04 15:42:19 -06:00
samsungtvsdl SAMSUNGTV: Use virtual keyboard event directly, rather than using keycode. 2014-04-29 00:27:56 +01:00
sdl SDL: Respect OS setting for wheel scroll direction on SDL 2.0.4+ 2017-03-21 21:06:35 +00:00
symbiansdl SDL: Always use sub-pixel joystick pointer resolution 2017-03-01 09:55:20 -06:00
webossdl SDL: Always use sub-pixel joystick pointer resolution 2017-03-01 09:55:20 -06:00
wincesdl SDL: Always use sub-pixel joystick pointer resolution 2017-03-01 09:55:20 -06:00