[Xcb] Xinput: units of the coordinates in motion-events?

Christophe Lohr christophe.lohr at cegetel.net
Sat Oct 27 14:55:47 UTC 2018

Hi Uli,

> So, I guess you have to cast your event to
> xcb_input_button_press_event_t and then use these accessors to get all
> the data you want out of the event.
> Does this somehow help you? Could you test if my guess here is right?

Many thanks for your guidance. I have a clearer understanding of the API

Note: I think that methods of the form 'xcb_generic_iterator_t 
xcb_input_FOO_BAR_end()' are not really dedicated to programmer, and are
here for internal purpose, to compute the address of the end of a chunk
of data and subsequently point to the next chunk.
The others methods were more useful for me.

See attached code. I'm rather happy with this.

Best regards

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointer.c
Type: text/x-csrc
Size: 3148 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20181027/fd8e30de/attachment.c>

More information about the Xcb mailing list