0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/input
James Ross-Gowan 7897f79217 input: merge mouse wheel and axis keycodes
Mouse wheel bindings have always been a cause of user confusion.
Previously, on Wayland and macOS, precise touchpads would generate AXIS
keycodes and notched mouse wheels would generate mouse button keycodes.
On Windows, both types of device would generate AXIS keycodes and on
X11, both types of device would generate mouse button keycodes. This
made it pretty difficult for users to modify their mouse-wheel bindings,
since it differed between platforms and in some cases, between devices.

To make it more confusing, the keycodes used on Windows were changed in
18a45a42d5 without a deprecation period or adequate communication to
users.

This change aims to make mouse wheel binds less confusing. Both the
mouse button and AXIS keycodes are now deprecated aliases of the new
WHEEL keycodes. This will technically break input configs on Wayland and
macOS that assign different commands to precise and non-precise scroll
events, but this is probably uncommon (if anyone does it at all) and I
think it's a fair tradeoff for finally fixing mouse wheel-related
confusion on other platforms.
2017-09-03 20:31:44 +10:00
..
cmd_list.c input: drop deprecated "osd" command 2017-07-21 20:02:58 +02:00
cmd_list.h input: drop deprecated "osd" command 2017-07-21 20:02:58 +02:00
cmd_parse.c input: change license to LGPL 2017-06-19 13:28:19 +02:00
cmd_parse.h input: change license to LGPL 2017-06-19 13:28:19 +02:00
event.c Use - as command-name separator everywhere 2016-07-14 22:37:42 +02:00
event.h input/event.h: add include guard 2016-03-15 22:44:15 +01:00
input.c input: merge mouse wheel and axis keycodes 2017-09-03 20:31:44 +10:00
input.h input: merge mouse wheel and axis keycodes 2017-09-03 20:31:44 +10:00
ipc-dummy.c build: change how some OS specific source files are selected 2017-06-29 10:30:16 +02:00
ipc-unix.c Avoid calling close(-1) 2017-06-29 10:31:13 +02:00
ipc-win.c ipc: log when listening to IPC socket 2016-09-29 16:47:19 +02:00
ipc.c ipc: raise json nesting limit 2017-05-03 20:47:11 +02:00
keycodes.c input: merge mouse wheel and axis keycodes 2017-09-03 20:31:44 +10:00
keycodes.h input: merge mouse wheel and axis keycodes 2017-09-03 20:31:44 +10:00
pipe-win32.c osdep: rename atomics.h to atomic.h 2016-09-07 11:26:25 +02:00