[PATCH libinput 1/6] evdev: don't ignore REL_HWHEEL values over 1

Hans de Goede hdegoede at redhat.com
Mon Nov 10 00:55:57 PST 2014


Hi,

On 11/07/2014 01:42 AM, Peter Hutterer wrote:
> Matching patch for REL_WHEEL is 09a3770961aad0973, not sure why I didn't
> do both at the same time.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Series looks good and is:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans

> ---
>  src/evdev.c | 19 +++++--------------
>  1 file changed, 5 insertions(+), 14 deletions(-)
> 
> diff --git a/src/evdev.c b/src/evdev.c
> index 272d165..84c42b6 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -549,21 +549,12 @@ evdev_process_relative(struct evdev_device *device,
>  		break;
>  	case REL_HWHEEL:
>  		evdev_flush_pending_event(device, time);
> -		switch (e->value) {
> -		case -1:
> -			/* Scroll left */
> -		case 1:
> -			/* Scroll right */
> -			pointer_notify_axis(
> -				base,
> -				time,
> -				LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL,
> -				e->value * DEFAULT_AXIS_STEP_DISTANCE);
> -			break;
> -		default:
> -			break;
> +		pointer_notify_axis(
> +			base,
> +			time,
> +			LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL,
> +			e->value * DEFAULT_AXIS_STEP_DISTANCE);
>  
> -		}
>  	}
>  }
>  
> 


More information about the wayland-devel mailing list