mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-21 17:50:07 +01:00
Default to a max of -1 for undefined EV_foo bits
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
dc27c627a7
commit
03fa066aec
1 changed files with 1 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ def print_map(bits):
|
||||||
print ""
|
print ""
|
||||||
|
|
||||||
print "static const int ev_max[EV_MAX + 1] = {"
|
print "static const int ev_max[EV_MAX + 1] = {"
|
||||||
|
print " [0 ... EV_MAX] = -1,"
|
||||||
for prefix in prefixes:
|
for prefix in prefixes:
|
||||||
if prefix == "BTN_" or prefix == "EV_" or prefix == "INPUT_PROP_":
|
if prefix == "BTN_" or prefix == "EV_" or prefix == "INPUT_PROP_":
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue