diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-03 13:20:10 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2009-12-03 13:20:10 +0100 |
commit | 89b62373422097a8eb6c1540bd41a572ed573fe6 (patch) | |
tree | cff2f8a3fe9990405197b952a01311ed9d960bf1 /extras/input_id | |
parent | 01db50919ebdf1aa5a21ea839117f52938c33afe (diff) |
input-id: identify touchscreens
Add detection of touchscreens to the input-id utility.
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Diffstat (limited to 'extras/input_id')
-rw-r--r-- | extras/input_id/input_id.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/input_id/input_id.c b/extras/input_id/input_id.c index 95f78795c0..21ee6b3cd3 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) && |