mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 08:00:08 +01:00
tools: print the device in all measure tools
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 0b8372962b)
This commit is contained in:
parent
a0a5e9eb7e
commit
bf857d3841
2 changed files with 6 additions and 0 deletions
|
|
@ -186,6 +186,9 @@ class Device(object):
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
self.device = evdev.InputDevice(self.path)
|
self.device = evdev.InputDevice(self.path)
|
||||||
|
|
||||||
|
print("Using {}: {}\n".format(self.device.name, self.path))
|
||||||
|
|
||||||
# capabilities returns a dict with the EV_* codes as key,
|
# capabilities returns a dict with the EV_* codes as key,
|
||||||
# each of which is a list of tuples of (code, AbsInfo)
|
# each of which is a list of tuples of (code, AbsInfo)
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,9 @@ class Device(object):
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
self.device = evdev.InputDevice(self.path)
|
self.device = evdev.InputDevice(self.path)
|
||||||
|
|
||||||
|
print("Using {}: {}\n".format(self.device.name, self.path))
|
||||||
|
|
||||||
# capabilities rturns a dict with the EV_* codes as key,
|
# capabilities rturns a dict with the EV_* codes as key,
|
||||||
# each of which is a list of tuples of (code, AbsInfo)
|
# each of which is a list of tuples of (code, AbsInfo)
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue