summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-10-19 12:17:03 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-10-29 04:16:38 +0000
commit981f3a47e6ec1d10b2bac0612e86d11bb291415d (patch)
treea298fb28b04723ca59730492b7cd5a9bcbbf5bf1 /doc
parent49b58311590402af346fef176785f9de9b250e44 (diff)
quirks: add the ability to disable custom event codes/types
This is a more flexible approach than adding a model flag and the C code to just call libevdev_disable_event_code(). There's a risk users will think this is is a configuration API but there are some devices out there (e.g. the Microsoft Sculpt mouse) that need a more generic solution. Case in point: the Sculpt mouse insists on holding BTN_SIDE down at all times. We cannot ship any quirks for that device because we only have the receiver's generic VID/PID. So a local override is required, but we might as well make that one generic enough to catch other devices too in the future. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/user/device-quirks.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/user/device-quirks.rst b/doc/user/device-quirks.rst
index 5531316f..f28600c4 100644
--- a/doc/user/device-quirks.rst
+++ b/doc/user/device-quirks.rst
@@ -177,3 +177,7 @@ AttrTPKComboLayout=below
Indicates the position of the touchpad on an external touchpad+keyboard
combination device. This is a string enum. Don't specify it unless the
touchpad is below.
+AttrEventCodeDisable=EV_ABS;BTN_STYLUS;EV_KEY:0x123;
+ Disables the evdev event type/code tuples on the device. Entries may be
+ a named event type, or a named event code, or a named event type with a
+ hexadecimal event code, separated by a single colon.