[PATCH 07/27] Input: Add vertical and horizontal scroll axes

Peter Hutterer peter.hutterer at who-t.net
Mon Jun 6 21:56:48 PDT 2011


On Fri, Jun 03, 2011 at 03:59:43PM +0100, Daniel Stone wrote:
> To be used for smooth scrolling with future driver APIs.
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> ---
>  Xi/xiproperty.c              |    5 +++++
>  include/xserver-properties.h |    2 ++
>  2 files changed, 7 insertions(+), 0 deletions(-)
> 
[...]
> diff --git a/include/xserver-properties.h b/include/xserver-properties.h
> index 2b1feab..b3764c5 100644
> --- a/include/xserver-properties.h
> +++ b/include/xserver-properties.h
> @@ -74,6 +74,8 @@
>  #define AXIS_LABEL_PROP_REL_DIAL        "Rel Dial"
>  #define AXIS_LABEL_PROP_REL_WHEEL       "Rel Vert Wheel"
>  #define AXIS_LABEL_PROP_REL_MISC        "Rel Misc"
> +#define AXIS_LABEL_PROP_REL_VSCROLL     "Rel Vert Scroll"
> +#define AXIS_LABEL_PROP_REL_HSCROLL     "Rel Horiz Scroll"
>  
>  /*
>   * Absolute axes
> -- 
> 1.7.5.3

Should a mouse wheel use Rel Horiz Wheel or Rel Horiz Scroll now? Might be
worth adding a bit to the commit message to explain the semantics of this
new set of properties.

aiui, adding this means that clients can rely that these axes are an
emulated scroll axis whereas wheel would be a physical axis that can be
interpreted as whatever by the client. either way, clients need to know and
handle both.
 
Cheers,
  Peter


More information about the xorg-devel mailing list