mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
wlr-seat: implement cursor axis events
Axis events for the cursor are generated with the scroll wheel.
This commit is contained in:
parent
00cc20b0a8
commit
e38248f34c
3 changed files with 27 additions and 4 deletions
|
|
@ -417,10 +417,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue