projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4277d63
)
tools: print the number of touches for touch devices
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 2 May 2018 03:51:00 +0000
(13:51 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 2 May 2018 03:51:00 +0000
(13:51 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-debug-events.c
patch
|
blob
|
history
diff --git
a/tools/libinput-debug-events.c
b/tools/libinput-debug-events.c
index
32782c2
..
9bf9d52
100644
(file)
--- a/
tools/libinput-debug-events.c
+++ b/
tools/libinput-debug-events.c
@@
-274,6
+274,10
@@
print_device_notify(struct libinput_event *ev)
if (libinput_device_get_size(dev, &w, &h) == 0)
printq(" size %.0fx%.0fmm", w, h);
+ if (libinput_device_has_capability(dev,
+ LIBINPUT_DEVICE_CAP_TOUCH))
+ printq(" ntouches %d", libinput_device_touch_get_touch_count(dev));
+
if (libinput_event_get_type(ev) == LIBINPUT_EVENT_DEVICE_ADDED)
print_device_options(dev);