mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add unaccelerated pointer values to wlr_event_pointer_motion events
This commit is contained in:
parent
a803a007fb
commit
e276d310e8
3 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue