From 2385ad2f0493de5a1d59616e9525349875fffb85 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 15 Jun 2023 10:58:26 +0200 Subject: [PATCH] tools: Display touch device info --- tools/mks-connect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/mks-connect.c b/tools/mks-connect.c index 5ff147a..97b2d27 100644 --- a/tools/mks-connect.c +++ b/tools/mks-connect.c @@ -53,6 +53,9 @@ print_device_info (MksDevice *device, else if (MKS_IS_MOUSE (device)) g_print (", is-absolute=%u", mks_mouse_get_is_absolute (MKS_MOUSE (device))); + else if (MKS_IS_TOUCHABLE (device)) + g_print (", max-slots=%u", + mks_touchable_get_max_slots (MKS_TOUCHABLE (device))); g_print (")\n"); if (MKS_IS_SCREEN (device)) @@ -60,9 +63,11 @@ print_device_info (MksDevice *device, MksScreen *screen = MKS_SCREEN (device); MksKeyboard *keyboard = mks_screen_get_keyboard (screen); MksMouse *mouse = mks_screen_get_mouse (screen); + MksTouchable *touchable = mks_screen_get_touchable (screen); print_device_info (MKS_DEVICE (keyboard), depth+1); print_device_info (MKS_DEVICE (mouse), depth+1); + print_device_info (MKS_DEVICE (touchable), depth+1); } }