mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 14:40:07 +01:00
Add a note that libevdev_is_event_type/code have compile-time ranges
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
fed9963973
commit
40fda4b2d4
1 changed files with 6 additions and 0 deletions
|
|
@ -1211,6 +1211,9 @@ int libevdev_kernel_set_led_values(struct libevdev *dev, ...);
|
|||
* with the exception that some sanity checks are performed to ensure type
|
||||
* is valid.
|
||||
*
|
||||
* @note The ranges for types are compiled into libevdev. If the kernel
|
||||
* changes the max value, libevdev will not automatically pick these up.
|
||||
*
|
||||
* @param ev The input event to check
|
||||
* @param type Input event type to compare the event against (EV_REL, EV_ABS,
|
||||
* etc.)
|
||||
|
|
@ -1231,6 +1234,9 @@ int libevdev_is_event_type(const struct input_event *ev, unsigned int type);
|
|||
* with the exception that some sanity checks are performed to ensure type and
|
||||
* code are valid.
|
||||
*
|
||||
* @note The ranges for types and codes are compiled into libevdev. If the kernel
|
||||
* changes the max value, libevdev will not automatically pick these up.
|
||||
*
|
||||
* @param ev The input event to check
|
||||
* @param type Input event type to compare the event against (EV_REL, EV_ABS,
|
||||
* etc.)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue