mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 07:40:26 +01:00
Convert notify_axis to wl_fixed_t
In preparation for the rest of the axis code changing. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
5e29a12788
commit
36dbbb086c
1 changed files with 4 additions and 2 deletions
|
|
@ -168,12 +168,14 @@ evdev_process_relative(struct evdev_input_device *device,
|
|||
case REL_WHEEL:
|
||||
notify_axis(&device->master->base.seat,
|
||||
time,
|
||||
WL_POINTER_AXIS_VERTICAL_SCROLL, e->value);
|
||||
WL_POINTER_AXIS_VERTICAL_SCROLL,
|
||||
wl_fixed_from_int(e->value));
|
||||
break;
|
||||
case REL_HWHEEL:
|
||||
notify_axis(&device->master->base.seat,
|
||||
time,
|
||||
WL_POINTER_AXIS_HORIZONTAL_SCROLL, e->value);
|
||||
WL_POINTER_AXIS_HORIZONTAL_SCROLL,
|
||||
wl_fixed_from_int(e->value));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue