mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
pointer: drop enum wlr_axis_relative_direction
Instead, use enum wl_pointer_axis_relative_direction from the Wayland protocol.
This commit is contained in:
parent
812451cd8f
commit
ec5263e6b7
7 changed files with 12 additions and 17 deletions
|
|
@ -129,9 +129,9 @@ void handle_pointer_axis(struct libinput_event *event,
|
|||
wlr_event.delta_discrete =
|
||||
libinput_event_pointer_get_axis_value_discrete(pevent, axes[i]);
|
||||
wlr_event.delta_discrete *= WLR_POINTER_AXIS_DISCRETE_STEP;
|
||||
wlr_event.relative_direction = WLR_AXIS_RELATIVE_DIRECTION_IDENTICAL;
|
||||
wlr_event.relative_direction = WL_POINTER_AXIS_RELATIVE_DIRECTION_IDENTICAL;
|
||||
if (libinput_device_config_scroll_get_natural_scroll_enabled(libinput_event_get_device(event))) {
|
||||
wlr_event.relative_direction = WLR_AXIS_RELATIVE_DIRECTION_INVERTED;
|
||||
wlr_event.relative_direction = WL_POINTER_AXIS_RELATIVE_DIRECTION_INVERTED;
|
||||
}
|
||||
wl_signal_emit_mutable(&pointer->events.axis, &wlr_event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue