mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
pointer: drop enum wlr_axis_orientation
Instead, use enum wl_pointer_axis from the Wayland protocol.
This commit is contained in:
parent
ec5263e6b7
commit
488a23c169
7 changed files with 15 additions and 20 deletions
|
|
@ -118,10 +118,10 @@ void handle_pointer_axis(struct libinput_event *event,
|
|||
|
||||
switch (axes[i]) {
|
||||
case LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL:
|
||||
wlr_event.orientation = WLR_AXIS_ORIENTATION_VERTICAL;
|
||||
wlr_event.orientation = WL_POINTER_AXIS_VERTICAL_SCROLL;
|
||||
break;
|
||||
case LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL:
|
||||
wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL;
|
||||
wlr_event.orientation = WL_POINTER_AXIS_HORIZONTAL_SCROLL;
|
||||
break;
|
||||
}
|
||||
wlr_event.delta =
|
||||
|
|
@ -159,10 +159,10 @@ void handle_pointer_axis_value120(struct libinput_event *event,
|
|||
}
|
||||
switch (axes[i]) {
|
||||
case LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL:
|
||||
wlr_event.orientation = WLR_AXIS_ORIENTATION_VERTICAL;
|
||||
wlr_event.orientation = WL_POINTER_AXIS_VERTICAL_SCROLL;
|
||||
break;
|
||||
case LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL:
|
||||
wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL;
|
||||
wlr_event.orientation = WL_POINTER_AXIS_HORIZONTAL_SCROLL;
|
||||
break;
|
||||
}
|
||||
wlr_event.delta =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue