mpv/input
James Ross-Gowan 89fd3e1d9d command: use scale_units to add/cycle integer properties
This adds check_property_scalable, which returns true if the property is
backed by a floating-point number. When the add or cycle commands
operate on these properties, they can benefit from the fractional scale
value in cmd->scale. When the property is not backed by a floating-point
number, cmd->scale_units is used instead, so for axis events, the
property is only incrmented when the user scrolls one full unit.

This solution isn't perfect, because in some cases integer-backed
properties could benefit from accurate scrolling. For example, if an
axis is bound to "cycle audio 5", the cycle command could be made to
change the audio track by one when the user scrolls 1/5th of a unit,
though this behaviour would require more changes to the options system.
2017-05-12 22:58:58 +10:00
..
cmd_list.c command: mark some commands as "scalable" 2017-05-12 22:58:58 +10:00
cmd_list.h command: mark some commands as "scalable" 2017-05-12 22:58:58 +10:00
cmd_parse.c command: use scale_units to add/cycle integer properties 2017-05-12 22:58:58 +10:00
cmd_parse.h
event.c
event.h
input.c command: use scale_units to add/cycle integer properties 2017-05-12 22:58:58 +10:00
input.h command: use scale_units to add/cycle integer properties 2017-05-12 22:58:58 +10:00
ipc-unix.c ipc: log when listening to IPC socket 2016-09-29 16:47:19 +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
keycodes.h input: add MP_KEY_IS_AXIS and treat MP_AXIS_* as mouse events 2017-05-12 22:58:58 +10:00
pipe-win32.c