diff options
author | Alex Maese <memaese@hotmail.com> | 2018-12-17 14:24:07 -0600 |
---|---|---|
committer | Alex Maese <memaese@hotmail.com> | 2018-12-21 12:20:48 -0600 |
commit | e276d310e81c6bebf883ff3eeff5210d306b1c57 (patch) | |
tree | 88199f98e7de221eb56a7d8ecfa32bf850c786f7 /backend/libinput/pointer.c | |
parent | a803a007fb9c572e0eccc22ab670ac711cb89b13 (diff) |
Add unaccelerated pointer values to wlr_event_pointer_motion events
Diffstat (limited to 'backend/libinput/pointer.c')
-rw-r--r-- | backend/libinput/pointer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index fb85cddd..b9cf1dfe 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -36,6 +36,8 @@ void handle_pointer_motion(struct libinput_event *event, usec_to_msec(libinput_event_pointer_get_time_usec(pevent)); wlr_event.delta_x = libinput_event_pointer_get_dx(pevent); wlr_event.delta_y = libinput_event_pointer_get_dy(pevent); + wlr_event.unaccel_dx = libinput_event_pointer_get_dx_unaccelerated(pevent); + wlr_event.unaccel_dy = libinput_event_pointer_get_dy_unaccelerated(pevent); wlr_signal_emit_safe(&wlr_dev->pointer->events.motion, &wlr_event); } |