mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-24 00:40:31 +01:00
tools: print the number of touches for touch devices
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4277d63bc6
commit
795657a0a1
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue