mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-23 13:00:06 +01:00
Note that libevdev_change_fd requires a LIBEVDEV_FORCE_SYNC
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d9fcbd563a
commit
49203b040e
1 changed files with 4 additions and 0 deletions
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue