[PATCH RFC weston] libinput: support high-resolution scroll wheels
Simon Ser
contact at emersion.fr
Tue Jan 29 14:19:08 UTC 2019
On Tuesday, January 29, 2019 7:57 AM, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> switch (source) {
> case LIBINPUT_POINTER_AXIS_SOURCE_WHEEL:
> +#if HAVE_LIBINPUT_AXIS_V120
> + value = 10 * libinput_event_pointer_get_axis_value_v120(
> + pointer_event,
> + axis)/120.0;
> +#else
> value = 10 * libinput_event_pointer_get_axis_value_discrete(
> pointer_event,
> axis);
> +#endif
Just a general libinput question: in wlroots, we just use
libinput_event_pointer_get_axis_value regardless of the source. Is the
multiply-by-10 workaround supposed to be implemented in all
compositors?
More information about the wayland-devel
mailing list