[PATCH libinput 1/2] tablet: Don't swap X and Y in evcode_to_axis()

Peter Hutterer peter.hutterer at who-t.net
Wed Jul 16 17:28:53 PDT 2014


On Sun, Jul 13, 2014 at 07:19:28PM -0400, Stephen Chandler Paul wrote:
> Signed-off-by: Stephen Chandler Paul <thatslyude at gmail.com>

pushed, thanks

Cheers,
   Peter

> ---
>  src/evdev-tablet.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/evdev-tablet.h b/src/evdev-tablet.h
> index 74447bd..1b53d20 100644
> --- a/src/evdev-tablet.h
> +++ b/src/evdev-tablet.h
> @@ -75,10 +75,10 @@ evcode_to_axis(const uint32_t evcode)
>  		axis = LIBINPUT_TABLET_AXIS_PRESSURE;
>  		break;
>  	case ABS_TILT_X:
> -		axis = LIBINPUT_TABLET_AXIS_TILT_Y;
> +		axis = LIBINPUT_TABLET_AXIS_TILT_X;
>  		break;
>  	case ABS_TILT_Y:
> -		axis = LIBINPUT_TABLET_AXIS_TILT_X;
> +		axis = LIBINPUT_TABLET_AXIS_TILT_Y;
>  		break;
>  	default:
>  		axis = LIBINPUT_TABLET_AXIS_NONE;
> -- 
> 1.8.5.5
> 


More information about the wayland-devel mailing list