summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-04-04 14:11:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-04-08 09:01:56 +1000
commitd55056c468360cbe2ecbe90fde60ba176c5429ce (patch)
treee1dd07629794156429a3478048096775668e0885
parent6721131eaf5c0d5aea7a50dd70c7ebc350f1b5b9 (diff)
downloadlibevdev-d55056c468360cbe2ecbe90fde60ba176c5429ce.tar.gz
Calling libevdev_enable_event_code() overwrites EV_ABS/EV_REP values
Document this behaviour Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--libevdev/libevdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h
index 31b5c79..d79b191 100644
--- a/libevdev/libevdev.h
+++ b/libevdev/libevdev.h
@@ -1639,6 +1639,10 @@ int libevdev_disable_event_type(struct libevdev *dev, unsigned int type);
* This is a local modification only affecting only this representation of
* this device.
*
+ * If this function is called with a type of EV_ABS and EV_REP on a device
+ * that already has the given event code enabled, the values in data
+ * overwrite the previous values.
+ *
* @param dev The evdev device, already initialized with libevdev_set_fd()
* @param type The event type to enable (EV_ABS, EV_KEY, ...)
* @param code The event code to enable (ABS_X, REL_X, etc.)