Note that libevdev_change_fd requires a LIBEVDEV_FORCE_SYNC
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 4 Oct 2013 06:15:43 +0000 (16:15 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 4 Oct 2013 06:15:43 +0000 (16:15 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev.h

index 8d75acb..09934a2 100644 (file)
@@ -478,6 +478,10 @@ int libevdev_set_fd(struct libevdev* dev, int fd);
  * No check is made that new fd points to the same device. If the device has
  * changed, libevdev's behavior is undefined.
  *
+ * libevdev does not sync itself after changing the fd and keeps the current
+ * device state. Use libevdev_next_event with the LIBEVDEV_FORCE_SYNC flag to
+ * force a re-sync.
+ *
  * The fd may be open in O_RDONLY or O_RDWR.
  *
  * It is an error to call this function before calling libevdev_set_fd().