mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 04:40:05 +01:00
evdev: Include the device capabilities in the debugging
This commit is contained in:
parent
4135ccf315
commit
24eabf8bb1
1 changed files with 5 additions and 2 deletions
|
|
@ -473,8 +473,11 @@ evdev_configure_device(struct evdev_device *device)
|
|||
if ((device->caps &
|
||||
(EVDEV_MOTION_ABS | EVDEV_MOTION_REL | EVDEV_BUTTON))) {
|
||||
weston_seat_init_pointer(device->seat);
|
||||
weston_log("input device %s, %s is a pointer\n",
|
||||
device->devname, device->devnode);
|
||||
weston_log("input device %s, %s is a pointer caps =%s%s%s\n",
|
||||
device->devname, device->devnode,
|
||||
device->caps & EVDEV_MOTION_ABS ? " absolute-motion" : "",
|
||||
device->caps & EVDEV_MOTION_REL ? " relative-motion": "",
|
||||
device->caps & EVDEV_BUTTON ? " button" : "");
|
||||
}
|
||||
if ((device->caps & EVDEV_KEYBOARD)) {
|
||||
weston_seat_init_keyboard(device->seat, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue