[PATCH libinput 07/24] Add extra libinput_pointer_axis values for tablets

Peter Hutterer peter.hutterer at who-t.net
Sun Apr 27 22:06:51 PDT 2014


On Mon, Apr 21, 2014 at 07:11:16PM +0200, Carlos Garnacho wrote:
> distance/pressure/xtilt/ytilt are handled at the moment, this leaves
> wheels/strips out at the moment...
> 
> Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
> ---
>  src/libinput.h | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/libinput.h b/src/libinput.h
> index 5b3d79e..05690a9 100644
> --- a/src/libinput.h
> +++ b/src/libinput.h
> @@ -108,7 +108,11 @@ enum libinput_pointer_button_state {
>   */
>  enum libinput_pointer_axis {
>  	LIBINPUT_POINTER_AXIS_VERTICAL_SCROLL = 0,
> -	LIBINPUT_POINTER_AXIS_HORIZONTAL_SCROLL = 1
> +	LIBINPUT_POINTER_AXIS_HORIZONTAL_SCROLL = 1,
> +	LIBINPUT_POINTER_AXIS_DISTANCE = 2,
> +	LIBINPUT_POINTER_AXIS_PRESSURE = 3,
> +	LIBINPUT_POINTER_AXIS_VERTICAL_TILT = 4,
> +	LIBINPUT_POINTER_AXIS_HORIZONTAL_TILT = 5

I'm going to send a patch out for that in a minute - I'd really prefer this
to be namespaced properly, i.e. LIBINPUT_POINTER_AXIS_TILT_VERTICAL. The
precendence with scroll is imo not ideal.

Cheers,
   Peter

>  };
>  
>  /**
> -- 
> 1.9.0
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> 


More information about the wayland-devel mailing list