Calling libevdev_enable_event_code() overwrites EV_ABS/EV_REP values
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 4 Apr 2014 04:11:47 +0000 (14:11 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 7 Apr 2014 23:01:56 +0000 (09:01 +1000)
Document this behaviour

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev.h

index 31b5c792e064d7937b7cb7c0212310d1e620364b..d79b19118be00eb18b6fd5f40244e954bded10b0 100644 (file)
@@ -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.)