Open tapir opened 8 years ago
# set device capabilities
for etype, codes in events.items():
for code in codes:
# handle max, min, fuzz, flat
if isinstance(code, (tuple, list, device.AbsInfo)):
# flatten (ABS_Y, (0, 255, 0, 0)) to (ABS_Y, 0, 255, 0, 0)
f = [code[0]]; f += code[1]
absinfo.append(f)
code = code[0]
Could it be related to this part in uinput.py:70?
I'm trying to mirror a gamepad with code below.
Above code keeps getting the error below.
But when I change the value=128 to value=0 for both AbsInfo()'s. it runs without an error. Printing the uinput device capabilities with evtest.py reveals this:
Any help would be appreciated.
Thanks