From 0b585795645f608093ae59199a71bf5be6790e3b Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 12 May 2018 13:04:47 +0100 Subject: Add support for discrete axis values --- backend/libinput/pointer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend/libinput/pointer.c') diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 9a39b66b..f628cf22 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -126,8 +126,10 @@ void handle_pointer_axis(struct libinput_event *event, wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL; break; } - wlr_event.delta = libinput_event_pointer_get_axis_value( - pevent, axies[i]); + wlr_event.delta = + libinput_event_pointer_get_axis_value(pevent, axies[i]); + wlr_event.delta_discrete = + libinput_event_pointer_get_axis_value_discrete(pevent, axies[i]); wlr_signal_emit_safe(&wlr_dev->pointer->events.axis, &wlr_event); } } -- cgit v1.2.3