tools: libinput-replay: set INPUT_PROP_* properties on the device

Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/60

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-06-21 14:07:02 +10:00
parent 18e397446f
commit c20d50eb6f

View file

@ -89,6 +89,10 @@ def create(device):
data = 20
d.enable(libevdev.evbit(evtype, code), data=data)
properties = fetch(evdev, 'properties')
for prop in properties:
d.enable(libevdev.propbit(prop))
uinput = d.create_uinput_device()
return uinput