mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Handle relative motion for mouse tools
This commit is contained in:
parent
503f9d6e52
commit
48e2cba9b6
3 changed files with 17 additions and 6 deletions
|
|
@ -204,10 +204,12 @@ void handle_tablet_tool_axis(struct libinput_event *event,
|
|||
if (libinput_event_tablet_tool_x_has_changed(tevent)) {
|
||||
wlr_event.updated_axes |= WLR_TABLET_TOOL_AXIS_X;
|
||||
wlr_event.x = libinput_event_tablet_tool_get_x_transformed(tevent, 1);
|
||||
wlr_event.dx = libinput_event_tablet_tool_get_dx(tevent);
|
||||
}
|
||||
if (libinput_event_tablet_tool_y_has_changed(tevent)) {
|
||||
wlr_event.updated_axes |= WLR_TABLET_TOOL_AXIS_Y;
|
||||
wlr_event.y = libinput_event_tablet_tool_get_y_transformed(tevent, 1);
|
||||
wlr_event.dy = libinput_event_tablet_tool_get_dy(tevent);
|
||||
}
|
||||
if (libinput_event_tablet_tool_pressure_has_changed(tevent)) {
|
||||
wlr_event.updated_axes |= WLR_TABLET_TOOL_AXIS_PRESSURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue