Merge pull request #152 from acrisci/feature/wlr-seat-axis-events

wlr-seat cursor axis events
This commit is contained in:
Drew DeVault 2017-09-22 10:43:48 -04:00 committed by GitHub
commit 087894ae99
3 changed files with 36 additions and 10 deletions

View file

@ -468,10 +468,11 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener,
}
static void handle_cursor_axis(struct wl_listener *listener, void *data) {
//struct sample_state *sample =
//wl_container_of(listener, sample, cursor_axis);
//struct wlr_event_pointer_axis *event = data;
wlr_log(L_DEBUG, "TODO: handle cursor axis");
struct sample_state *sample =
wl_container_of(listener, sample, cursor_axis);
struct wlr_event_pointer_axis *event = data;
wlr_seat_pointer_send_axis(sample->wl_seat, event->time_sec,
event->orientation, event->delta);
}
static void handle_cursor_button(struct wl_listener *listener, void *data) {