[ANNOUNCE] libevdev 1.6.901
Peter Hutterer
peter.hutterer at who-t.net
Fri May 24 01:10:18 UTC 2019
The first rc for libevdev 1.7 is now available.
One new set of APIS:
- libevdev_event_type_from_code_name
- libevdev_event_code_from_code_name
Previously, to look up a event code from a code name required providing
(sometimes guessing) the event type. As the kernel prefixes all codes in a
unique way anyway, this function makes things easier for the caller. Simply
supply e.g. "KEY_A" and you get the right key type and code, whichever you
need.
An internal change in behaviour as well. Previously any call to
libevdev_next_event() would read more events from the kernel where
available. This was a design decision from many years ago when we were
suffering from frequent SYN_DROPPED events. However, this caused a large
number of unnecessary read() calls. Many touch devices have multiple axis so
it's common to trigger 5-10 read() just to process a single event frame from
such a device.
The kernel only ever sends events on SYN_REPORT anyway, the new behaviour is
to only check for new events when we're handling a SYN_REPORT ourselves.
Short of customised test cases, this should not have any user-visible
effect.
I don't plan for another RC so please give this one a test quickly before
the final 1.7 release is out.
Peter Hutterer (7):
include: sync event codes with kernel 4.20
Replace ABS_MT_SLOT - 1 with the v4.20 ABS_RESERVED define
include: sync event codes with kernel 5.0
Don't read events unless required
Add a code-based name lookup function
include: sync event codes with kernel 5.1
libevdev 1.7rc1
git tag: libevdev-1.6.901
https://www.freedesktop.org/software/libevdev/libevdev-1.6.901.tar.xz
MD5: 553d337f60f3aaf67f0119b657a34dc3 libevdev-1.6.901.tar.xz
SHA1: 4aac962014efb0d8fa7227e4d71046114ce25ce6 libevdev-1.6.901.tar.xz
SHA256: 317fb8bd3af2040bed4b45f161aa44b0f0642060a2249f3f5f4875ccbe241f4b libevdev-1.6.901.tar.xz
SHA512: 3035e627e14d0f4f9613c4dac8e2ad2febca0106fba251da4156785e4939d254434420d06c78119d08d09e7160e0d1d994c73bc4677c1ddeb9a510004d90ae4e libevdev-1.6.901.tar.xz
PGP: https://www.freedesktop.org/software/libevdev/libevdev-1.6.901.tar.xz.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/input-tools/attachments/20190524/e2abf78d/attachment.sig>
More information about the Input-tools
mailing list