So we don't unnecessarily advertise interfaces the seat doesn't support.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
if (has_abs && !has_key)
return -1;
+ if ((device->caps &
+ (EVDEV_MOTION_ABS | EVDEV_MOTION_REL | EVDEV_BUTTON)))
+ weston_seat_init_pointer(&device->master->base);
+ if ((device->caps & EVDEV_KEYBOARD))
+ weston_seat_init_keyboard(&device->master->base);
+ if ((device->caps & EVDEV_TOUCH))
+ weston_seat_init_touch(&device->master->base);
+
return 0;
}