diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-02-26 16:59:58 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-02-26 17:12:08 +1000 |
| commit | a67d1964ffa53622322736d32b48162d94c4208a (patch) | |
| tree | 419fcc6756a3228ecab81c91ecca27b4c41114d3 /libevdev | |
| parent | 3799acd49ed6cb25e8838a49dafcf057415fe6e3 (diff) | |
| download | libevdev-a67d1964ffa53622322736d32b48162d94c4208a.tar.gz | |
Blacklist REP_MAX so it doesn't shadow REP_PERIOD
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>
Diffstat (limited to 'libevdev')
| -rwxr-xr-x | libevdev/make-event-names.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libevdev/make-event-names.py b/libevdev/make-event-names.py index d1e8873..8ec8858 100755 --- a/libevdev/make-event-names.py +++ b/libevdev/make-event-names.py @@ -35,7 +35,8 @@ blacklist = [ "BTN_GAMEPAD", "BTN_DIGI", "BTN_WHEEL", - "BTN_TRIGGER_HAPPY" + "BTN_TRIGGER_HAPPY", + "REP_MAX", ] btn_additional = [ |
