1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/input
wm4 45b432f4c3 commands: replace "switch" with "add" and "cycle"
Now it depends on the command whether a property wraps around, or stops
at min/max valid property value.

For practically all properties, it's quite unambiguous what the "switch"
command should have done, and there's technically no need to replace it
with these new commands. More over, most properties that cycle are
boolean anyway. But it seems more orthogonal to make the difference
explicit, rather than hardcoding it. Having different commands also
makes it more explicit to the user what these commands do, both just due
to the naming, and what wrapping policy is used. The code is simpler
too.
2012-10-12 10:10:31 +02:00
..
appleir.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
ar.c input/ar.c, input/lirc.c: fix changes missing from 1916b95b8 2011-09-04 08:04:31 +03:00
ar.h cleanup: remove some unnecessary input.[ch] typedefs 2011-07-16 21:32:37 +03:00
input.c commands: replace "switch" with "add" and "cycle" 2012-10-12 10:10:31 +02:00
input.h commands: replace "switch" with "add" and "cycle" 2012-10-12 10:10:31 +02:00
joystick.c input/joystick.c: add #include missing from 23cb829072 2011-05-03 13:26:30 +03:00
joystick.h input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
keycodes.h win32: support key modifiers (shift, ctrl, alt) 2012-04-06 23:56:30 +02:00
lirc.c lirc: silence output in case LIRC can't be opened 2012-07-30 01:46:04 +02:00
lirc.h cleanup: remove some unnecessary input.[ch] typedefs 2011-07-16 21:32:37 +03:00