aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Strobach <lalochcz@gmail.com>2016-11-17 20:47:31 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2016-11-21 15:26:58 +1000
commit425ed6017a42937f69c1e8450ea8f3c6c6c20928 (patch)
tree2748b71a5a8e590c1121f1efaa52f3cf5e63eb7a /include
parentFix off-by-one error counting axes (diff)
downloadxf86-input-evdev-425ed6017a42937f69c1e8450ea8f3c6c6c20928.tar.gz
xf86-input-evdev-425ed6017a42937f69c1e8450ea8f3c6c6c20928.tar.bz2
xf86-input-evdev-425ed6017a42937f69c1e8450ea8f3c6c6c20928.zip
Middle emulation - make the emulated button number configurable
Sometimes it may be desirable to remap physical middle button to something else and use emulation instead. The emulation is however hardcoded to emulate physical button 2, so the emulated button gets remapped together with the physical one. This patch adds the Emulate3Button configuration option to allow for user selection of the emulated button number and a configuration like this: Section "InputClass" Identifier "Middle button emulation config" MatchProduct ".... some device ..." MatchDriver "evdev" Option "Emulate3Buttons" "on" Option "Emulate3Button" "9" EndSection Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/evdev-properties.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/evdev-properties.h b/include/evdev-properties.h
index 8ae5ba3..c61aa49 100644
--- a/include/evdev-properties.h
+++ b/include/evdev-properties.h
@@ -33,6 +33,8 @@
#define EVDEV_PROP_MIDBUTTON "Evdev Middle Button Emulation"
/* CARD32 */
#define EVDEV_PROP_MIDBUTTON_TIMEOUT "Evdev Middle Button Timeout"
+/* CARD8 */
+#define EVDEV_PROP_MIDBUTTON_BUTTON "Evdev Middle Button Button"
/* Wheel emulation */
/* BOOL */