input-id: identify touchscreens

Add detection of touchscreens to the input-id utility.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
This commit is contained in:
Dmitry Torokhov
2009-12-03 13:20:10 +01:00
committed by Martin Pitt
parent 01db50919e
commit 89b6237342
+2
View File
@@ -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) &&