diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-10-04 16:15:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-10-04 16:15:43 +1000 |
commit | 49203b040e8f41240f497b1c95d76e9f01dca310 (patch) | |
tree | 5457b46fa007102fa1a49df2b8e074088658ef25 | |
parent | d9fcbd563a1912ec4e2ba974c2731a5b4ae65dfa (diff) |
Note that libevdev_change_fd requires a LIBEVDEV_FORCE_SYNC
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | libevdev/libevdev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h index 8d75acb..09934a2 100644 --- a/libevdev/libevdev.h +++ b/libevdev/libevdev.h @@ -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(). |