[PATCH weston 10/10] evdev: log when a device is used as touchpad

Peter Hutterer peter.hutterer at who-t.net
Tue Aug 6 18:04:49 PDT 2013


---
 src/evdev.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/evdev.c b/src/evdev.c
index 7bacbd9..ab35582 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -495,8 +495,11 @@ evdev_handle_device(struct evdev_device *device)
 		      key_bits);
 		if (TEST_BIT(key_bits, BTN_TOOL_FINGER) &&
 		    !TEST_BIT(key_bits, BTN_TOOL_PEN) &&
-		    has_abs)
+		    has_abs) {
 			device->dispatch = evdev_touchpad_create(device);
+			weston_log("input device %s, %s is a touchpad\n",
+				   device->devname, device->devnode);
+		}
 		for (i = KEY_ESC; i < KEY_MAX; i++) {
 			if (i >= BTN_MISC && i < KEY_OK)
 				continue;
-- 
1.8.2.1



More information about the wayland-devel mailing list