summaryrefslogtreecommitdiff
path: root/libevdev/libevdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-07-29 11:46:01 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-07-31 08:36:51 +1000
commit40493c3ff26ba25a999b4aa3a8672cf33b036c6f (patch)
tree99075937d9b0aef5f60e9c6e6785973cebcc37d2 /libevdev/libevdev.h
parentfc7c3b73a4dc4c6e1334ab8a2687e9ac7a5e8e31 (diff)
downloadlibevdev-40493c3ff26ba25a999b4aa3a8672cf33b036c6f.tar.gz
When enabling EV_REP, set the delay/period values
Just enabling EV_REP sets them to zero, but when enabling them directly, a value is required. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Diffstat (limited to 'libevdev/libevdev.h')
-rw-r--r--libevdev/libevdev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h
index 32100fb..606501b 100644
--- a/libevdev/libevdev.h
+++ b/libevdev/libevdev.h
@@ -871,8 +871,8 @@ int libevdev_disable_event_type(struct libevdev *dev, unsigned int type);
* @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.)
- * @param data If type is EV_ABS, data points to a struct input_absinfo. Otherwise, data must be
- * NULL
+ * @param data If type is EV_ABS, data points to a struct input_absinfo. If type is EV_REP, data
+ * points to an integer. Otherwise, data must be NULL.
*
* @return 0 on success or -1 otherwise
*