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 Update license headers 2015-04-13 12:10:01 +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 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 input: add a catch-all "unmapped" command 2015-12-23 19:13:45 +01:00
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 osdep: rename atomics.h to atomic.h 2016-09-07 11:26:25 +02:00