mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 21:40:05 +01:00
They have the same value, so the _MAX code would shadow the real code, causing
issues in any client that needs to get all event names from libevdev.
Specifically, the loop of:
for each code in 0 to max-for-type:
print(name)
would not show up the code (but the _MAX) code instead. This causes issues
with clients that rely on name resolution that works. And the _MAX values are
special values anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| generate-gcov-report.sh | ||
| Makefile.am | ||
| test-common-uinput.c | ||
| test-common-uinput.h | ||
| test-common.c | ||
| test-common.h | ||
| test-compile-pedantic.c | ||
| test-event-codes.c | ||
| test-event-names.c | ||
| test-int-queue.c | ||
| test-kernel.c | ||
| test-libevdev-events.c | ||
| test-libevdev-has-event.c | ||
| test-libevdev-init.c | ||
| test-link.c | ||
| test-main.c | ||
| test-uinput.c | ||
| valgrind.suppressions | ||