From 4477fee1c38aa2eca5b54cf73a0482c9ee8a8798 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 7 Aug 2013 11:04:49 +1000 Subject: [PATCH] evdev: log when a device is used as touchpad --- src/evdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index af60dbc..342cb9b 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -498,8 +498,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; -- 2.7.4