chiark / gitweb /
Remap Eee PC touchpad toggle key to F21 used by X
[elogind.git] / extras / input_id / input_id.c
index 95f78795c06eb75bd5d6afdc02970463e4e7c466..602c90d0c470c8396f72b01048553e41e6133aeb 100644 (file)
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <limits.h>
+#include <linux/limits.h>
 #include <linux/input.h>
 
 #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) &&