mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 08:00:08 +01:00
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:
parent
18e397446f
commit
c20d50eb6f
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ def create(device):
|
||||||
data = 20
|
data = 20
|
||||||
d.enable(libevdev.evbit(evtype, code), data=data)
|
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()
|
uinput = d.create_uinput_device()
|
||||||
return uinput
|
return uinput
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue