From: Dmitry Torokhov Date: Thu, 3 Dec 2009 12:20:10 +0000 (+0100) Subject: input-id: identify touchscreens X-Git-Tag: 174~691 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89b62373422097a8eb6c1540bd41a572ed573fe6;p=systemd input-id: identify touchscreens Add detection of touchscreens to the input-id utility. Signed-off-by: Martin Pitt --- 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) &&