1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 06:14:32 +00:00
mpv/input
wm4 f1205293a7 command: make "add <property> 0" not change the value
The value 0 was treated specially, and effectively forced the increment
to 1. Interestingly, passing 0 or no value also does not include the
scale (from touchpads etc.), but this is probably an accidental behavior
that was never intentionally added.

Simplify it and make the default increment 1. 0 now means what it
should: the value will not be changed. This is not particularly useful,
but on the other hand there is no need for surprising and unintuitive
semantics.

OARG_CYCLEDIR() failed to apply the default value, because
m_option_type_cycle_dir was missing a copy handler - add this too.
2015-09-10 14:15:48 +02:00
..
cmd_list.c command: make "add <property> 0" not change the value 2015-09-10 14:15:48 +02:00
cmd_list.h
cmd_parse.c command: make "add <property> 0" not change the value 2015-09-10 14:15:48 +02:00
cmd_parse.h
event.c
event.h
input.c
input.h
ipc.c
keycodes.c
keycodes.h
pipe-win32.c