X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=extras%2Finput_id%2Finput_id.c;h=602c90d0c470c8396f72b01048553e41e6133aeb;hp=95f78795c06eb75bd5d6afdc02970463e4e7c466;hb=9fa68615bb0315501625c6cde3f3077257c740e7;hpb=01db50919ebdf1aa5a21ea839117f52938c33afe diff --git a/extras/input_id/input_id.c b/extras/input_id/input_id.c index 95f78795c..602c90d0c 100644 --- a/extras/input_id/input_id.c +++ b/extras/input_id/input_id.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "libudev.h" @@ -89,6 +90,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) &&