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
|
|
@ -46,7 +46,7 @@ static void send_axis_event(struct wlr_x11_output *output, int32_t delta,
|
|||
.pointer = &output->pointer,
|
||||
.time_msec = time,
|
||||
.source = WL_POINTER_AXIS_SOURCE_WHEEL,
|
||||
.orientation = WLR_AXIS_ORIENTATION_VERTICAL,
|
||||
.orientation = WL_POINTER_AXIS_VERTICAL_SCROLL,
|
||||
// Most mice use a 15 degree angle per scroll click
|
||||
.delta = delta * 15,
|
||||
.delta_discrete = delta * WLR_POINTER_AXIS_DISCRETE_STEP,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue