tools: print the device in all measure tools

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-11-30 14:21:22 +10:00
parent 01da0ec1cb
commit 0b8372962b
3 changed files with 9 additions and 0 deletions

View file

@ -186,6 +186,9 @@ class Device(object):
self.path = 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,
# each of which is a list of tuples of (code, AbsInfo)
#

View file

@ -145,6 +145,9 @@ class Device(object):
self.path = 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,
# each of which is a list of tuples of (code, AbsInfo)
#

View file

@ -91,6 +91,9 @@ class Device(object):
self.path = 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,
# each of which is a list of tuples of (code, AbsInfo)
#