Does touchpads have buttons?

Simon Thum simon.thum at
Tue Sep 30 15:21:06 PDT 2008

Peter Hutterer wrote:
> On Tue, Sep 30, 2008 at 11:53:44AM +0200, Søren Hauberg wrote:
>> Okay, so I'm attaching my latest patch. This should handle everything
>> except setting/getting calibration parameters. I'll look into this
>> after lunch today. I'd love some feedback on the patch, as I think
>> this is the best structure, but since I'm a newbie I just might be
>> mistaken.
> +    /* Touch screen parameters */
> +    struct {
> +        BOOL                flip_x;
> +        BOOL                flip_y;
> +        BOOL                swap_xy; /* Some devices send (y, x) instead of (x, y). Currently not used */
> +        int                 min_x;
> +        int                 max_x;
> +        int                 min_y;
> +        int                 max_y;
> +    } touchscreen;
I would like to take the chance to clarify a question. This pretty much 
doubles what is in here:

typedef struct _AbsoluteClassRec {
     /* Calibration. */
     int         min_x;
     int         max_x;
     int         min_y;
     int         max_y;
     int         flip_x;
     int         flip_y;
     int		rotation;
     int         button_threshold;

     /* Area. */
     int         offset_x;
     int         offset_y;
     int         width;
     int         height;
     int         screen;
     XID		following;
} , *AbsoluteClassPtr;

All that crap gets initialized, copied, whatever, it's just not made use 
of. This led me to give Soeren the bogus advice so use it, but it seems 
not really possible. What's the state of this Xinput part? Deprecated or 

More information about the xorg mailing list