diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-12 09:29:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-12 09:29:42 -0400 |
commit | 50922cfe0f1ca71295d331b39d695a62a60650af (patch) | |
tree | db00d6d45676489085e7ebace68415be5c0ab50b /backend/libinput | |
parent | 84609d347a6c943096335ac5c96af133c782e179 (diff) | |
parent | db84379242cea0283d4031be90dd80a34dd5d2df (diff) |
Merge pull request #970 from emersion/pointer-axis-discrete
Add support for discrete axis values and axis source
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/pointer.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } } |