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:
Peter Hutterer 2017-11-30 14:21:22 +10:00
parent a0a5e9eb7e
commit bf857d3841
2 changed files with 6 additions and 0 deletions

View file

@ -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)
# #

View file

@ -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)
# #