mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 02:10:40 +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>
(cherry picked from commit c20d50eb6f)
This commit is contained in:
parent
e913edd140
commit
02398ba5fe
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue