[PATCH 27/27] Input: Add smooth-scrolling support to GetPointerEvents

Simon Thum simon.thum at gmx.de
Sun Jun 5 11:49:43 PDT 2011


On 06/03/2011 05:00 PM, Daniel Stone wrote:
> For scroll wheel support, we used to send buttons 4/5 and 6/7 for
> horizontal/vertical positive/negative scroll events.  For touchpads, we
> really want more fine-grained scroll values.  GetPointerEvents now
> accepts both old-school scroll button presses, and new-style scroll axis
> events, while emitting both types of events to support both old and new
> clients.
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>

I guess apps that want the best support across server generations are
supposed to know they can ignore legacy scroll by virtue of the
POINTER_EMULATED flag? If yes, shouldn't the flag be always set on
either the axis updates or the button events?

I further guess that the non-raw scroll events will still be adding up,
is that intentional?

Cheers,

Simon


> +        events += nev_tmp;
> +        num_events += nev_tmp;
> +    }
> +
>      return num_events;
>  }
>  



More information about the xorg-devel mailing list