mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-04 21:08:07 +02: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:
|
case REL_WHEEL:
|
||||||
notify_axis(&device->master->base.seat,
|
notify_axis(&device->master->base.seat,
|
||||||
time,
|
time,
|
||||||
WL_POINTER_AXIS_VERTICAL_SCROLL, e->value);
|
WL_POINTER_AXIS_VERTICAL_SCROLL,
|
||||||
|
wl_fixed_from_int(e->value));
|
||||||
break;
|
break;
|
||||||
case REL_HWHEEL:
|
case REL_HWHEEL:
|
||||||
notify_axis(&device->master->base.seat,
|
notify_axis(&device->master->base.seat,
|
||||||
time,
|
time,
|
||||||
WL_POINTER_AXIS_HORIZONTAL_SCROLL, e->value);
|
WL_POINTER_AXIS_HORIZONTAL_SCROLL,
|
||||||
|
wl_fixed_from_int(e->value));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue