From 89b62373422097a8eb6c1540bd41a572ed573fe6 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Thu, 3 Dec 2009 13:20:10 +0100 Subject: [PATCH] input-id: identify touchscreens Add detection of touchscreens to the input-id utility. Signed-off-by: Martin Pitt --- extras/input_id/input_id.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extras/input_id/input_id.c b/extras/input_id/input_id.c index 95f78795..21ee6b3c 100644 --- a/extras/input_id/input_id.c +++ b/extras/input_id/input_id.c @@ -89,6 +89,8 @@ static void test_pointers (const unsigned long* bitmask_ev, /* This path is taken by VMware's USB mouse, which has * absolute axes, but no touch/pressure button. */ is_mouse = 1; + else if (test_bit (BTN_TOUCH, bitmask_key)) + puts("ID_INPUT_TOUCHSCREEN=1"); } if (test_bit (EV_REL, bitmask_ev) && -- 2.39.5