From 023e5ccd02609c8a2fdcf63ee0a87025beeb79f0 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Thu, 25 Jul 2013 18:08:57 +0200 Subject: input: add support for precise scroll axes Support horizontal and vertical axes of input devices. If the input device support precise scrolling with an input value then it should first be scaled to a standard multiplier, where 1.0 is the default. The multiplier will then applied to the following commands if possible: * MP_CMD_SEEK * MP_CMD_SPEED_MULT * MP_CMD_ADD All other commands will triggered on every axis event, without change the values specified in the config file. --- etc/input.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') diff --git a/etc/input.conf b/etc/input.conf index 91382d58a5..f2f7d8bedb 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -35,6 +35,12 @@ MOUSE_BTN4 seek -10 MOUSE_BTN5 add volume 1 MOUSE_BTN6 add volume -1 +# Mouse wheels, touchpad or other input devices that have axes +AXIS_UP seek 10 +AXIS_DOWN seek -10 +AXIS_LEFT speed_mult 0.5 +AXIS_RIGHT speed_mult 1.5 + # Seek units are in seconds, but note that these are limited by keyframes RIGHT seek 10 LEFT seek -10 -- cgit v1.2.3