mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-21 13:10:08 +01:00
Drop the python map printing
leftover from when this was part of evemu Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
0f40ad8888
commit
3799acd49e
1 changed files with 0 additions and 12 deletions
|
|
@ -103,18 +103,6 @@ def print_map(bits):
|
||||||
print("#endif");
|
print("#endif");
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
def print_python_map(bits):
|
|
||||||
print("map = {")
|
|
||||||
|
|
||||||
for val, name in list(getattr(bits, "ev").items()):
|
|
||||||
name = name[3:]
|
|
||||||
if name == "REP" or name == "PWR" or name == "FF_STATUS" or name == "MAX":
|
|
||||||
continue
|
|
||||||
print(" %d : %s_map," % (val, name.lower()))
|
|
||||||
|
|
||||||
print("}")
|
|
||||||
print("")
|
|
||||||
|
|
||||||
def print_lookup(bits, prefix):
|
def print_lookup(bits, prefix):
|
||||||
if not hasattr(bits, prefix):
|
if not hasattr(bits, prefix):
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue