mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-06 03:28:00 +02:00
evdev: log when a device is used as touchpad
This commit is contained in:
parent
786bf52f8f
commit
f22edd89cb
1 changed files with 4 additions and 1 deletions
|
|
@ -498,8 +498,11 @@ evdev_handle_device(struct evdev_device *device)
|
||||||
key_bits);
|
key_bits);
|
||||||
if (TEST_BIT(key_bits, BTN_TOOL_FINGER) &&
|
if (TEST_BIT(key_bits, BTN_TOOL_FINGER) &&
|
||||||
!TEST_BIT(key_bits, BTN_TOOL_PEN) &&
|
!TEST_BIT(key_bits, BTN_TOOL_PEN) &&
|
||||||
has_abs)
|
has_abs) {
|
||||||
device->dispatch = evdev_touchpad_create(device);
|
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++) {
|
for (i = KEY_ESC; i < KEY_MAX; i++) {
|
||||||
if (i >= BTN_MISC && i < KEY_OK)
|
if (i >= BTN_MISC && i < KEY_OK)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue