Skip to content

Commit

Permalink
tools: print the device in all measure tools
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 0b83729)
  • Loading branch information
whot committed Dec 14, 2017
1 parent a0a5e9e commit bf857d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/libinput-measure-touch-size
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#
Expand Down
3 changes: 3 additions & 0 deletions tools/libinput-measure-touchpad-pressure
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#
Expand Down

0 comments on commit bf857d3

Please sign in to comment.