mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-25 11:40:07 +01:00
Replace hardcoded 0 with the enum for it
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f01a887b30
commit
a5a06035f9
1 changed files with 1 additions and 1 deletions
|
|
@ -845,7 +845,7 @@ libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_event
|
|||
/* if we disabled a code, get the next event instead */
|
||||
} while(!libevdev_has_event_code(dev, ev->type, ev->code));
|
||||
|
||||
rc = 0;
|
||||
rc = LIBEVDEV_READ_STATUS_SUCCESS;
|
||||
if (ev->type == EV_SYN && ev->code == SYN_DROPPED) {
|
||||
dev->sync_state = SYNC_NEEDED;
|
||||
rc = LIBEVDEV_READ_STATUS_SYNC;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue