scrcpy/app/src
Romain Vimont 3100533e56 Fix "natural scrolling"
> Movements down (scroll backward) generate negative y values and up
> (scroll forward) generate positive y values.

> If direction is SDL_MOUSEWHEEL_FLIPPED the values in x and y will be
> opposite. Multiply by -1 to change them back.

<https://wiki.libsdl.org/SDL_MouseWheelEvent#Remarks>

The x and y values already take the scrolling configuration into
account. Reversing the values when the direction is flipped cancels the
scrolling configuration.

Therefore, just ignore the direction field.

Fixes <https://github.com/Genymobile/scrcpy/issues/966>
2019-12-03 21:10:43 +01:00
..
android Remove AINPUT_SOURCE_ANY value 2018-08-12 15:35:29 +02:00
sys Remove path argument from cmd_execute() 2019-11-27 21:11:52 +01:00
util Assert return value of mutex functions 2019-11-27 21:40:58 +01:00
command.c Remove path argument from cmd_execute() 2019-11-27 21:11:52 +01:00
command.h Remove path argument from cmd_execute() 2019-11-27 21:11:52 +01:00
common.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
compat.h Disable X11 compositor bypass 2019-05-05 17:35:00 +02:00
control_msg.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
control_msg.h Merge mouse and touch events 2019-10-03 20:37:49 +02:00
controller.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
controller.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
decoder.c Remove unused includes 2019-11-27 21:40:54 +01:00
decoder.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
device_msg.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
device_msg.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
device.c Move utilities to util/ 2019-11-24 11:53:23 +01:00
device.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
event_converter.c Add --prefer-text option 2019-11-07 19:01:35 +01:00
event_converter.h Add --prefer-text option 2019-11-07 19:01:35 +01:00
events.h Add stream layer 2019-03-02 18:45:45 +01:00
file_handler.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
file_handler.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
fps_counter.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
fps_counter.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
icon.xpm Add window icon 2018-02-05 14:46:00 +01:00
input_manager.c Fix "natural scrolling" 2019-12-03 21:10:43 +01:00
input_manager.h Add --prefer-text option 2019-11-07 19:01:35 +01:00
main.c Replace BUILD_DEBUG by NDEBUG 2019-11-27 21:11:52 +01:00
receiver.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
receiver.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
recorder.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
recorder.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
scrcpy.c Fix warnings on Windows 2019-11-27 21:11:52 +01:00
scrcpy.h Add option --max-fps 2019-11-17 22:10:39 +01:00
screen.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
screen.h Add option to disable window decoration 2019-11-15 18:59:40 +01:00
server.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
server.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
stream.c Remove unused includes 2019-11-27 21:40:54 +01:00
stream.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
tiny_xpm.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
tiny_xpm.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
video_buffer.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
video_buffer.h Include config.h everywhere 2019-09-29 22:39:53 +02:00