Implement pointer motion and buttons

This commit is contained in:
Drew DeVault 2017-09-23 17:48:13 -04:00
parent 5b92d4fecf
commit eaf6c0ccf4
7 changed files with 107 additions and 40 deletions

View file

@ -82,6 +82,8 @@ struct roots_input *input_create(struct roots_server *server,
assert(input->xcursor = wlr_xcursor_theme_get_cursor(theme, "left_ptr"));
assert(input->wl_seat = wlr_seat_create(server->wl_display, "seat0"));
wlr_seat_set_capabilities(input->wl_seat, WL_SEAT_CAPABILITY_KEYBOARD
| WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_TOUCH);
wl_list_init(&input->keyboards);
wl_list_init(&input->pointers);