Common structure that contains details of INPUT_CLASS_MTOUCH input events.


typedef struct mtouch_event {
    input_event_e event_type ;
    _Uint64t timestamp ;
    _Uint32t seq_id ;
    _Uint32t contact_id ;
    _Int32t x ;
    _Int32t y ;
    _Uint32t width ;
    _Uint32t height ;
    _Uint32t orientation ;
    _Uint32t pressure ;
    _Uint32t contact_type ;
    _Uint32t select ;


input_event_e event_type
The INPUT_CLASS_MTOUCH event type.
_Uint64t timestamp
The approximate time at which the event occurred.
_Uint32t seq_id
The sequence number for the event, incremented each time a new touch event occurs.
_Uint32t contact_id
The order of occurrence for multiple touch contacts.
_Int32t x
The x screen position for the event, in pixels.
_Int32t y
The y screen position for the event, in pixels.
_Uint32t width
The width of the touch area, in pixels.
_Uint32t height
The height of the touch area, in pixels.
_Uint32t orientation
The orientation of the contact, not implemented.
_Uint32t pressure
The pressure of the touch contact, ranging from 0 to 2^32 - 1, not implemented.
_Uint32t contact_type
The contact type, e.g.

finger, stylus, etc

_Uint32t select
The selected buttons.




The mtouch_event structure represents information that is common to all input events of class INPUT_CLASS_MTOUCH. This information is filled in by the driver whenever an INPUT_CLASS_MTOUCH event occurs.