mtouch_event

Structure that contains details common to INPUT_CLASS_MTOUCH input events.

Synopsis:

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 ;
}mtouch_event_t;

Data:

input_event_e event_type
The event type of the INPUT_CLASS_MTOUCH event.
_Uint64t timestamp
Timestamp, based on realtime clock, when the INPUT_CLASS_MTOUCH event occurred.
_Uint32t seq_id
The sequence number for the event; seq_id is incremented each time a new touch-related event occurs.
_Uint32t contact_id
The order of occurrence for multiple touch contacts.
_Int32t x
The x screen position, in pixels, for the event.
_Int32t y
The y screen position, in pixels, for the event.
_Uint32t width
The width, in pixels, of the touch area.
_Uint32t height
The height, in pixels, of the touch area.
_Uint32t orientation
The orientation of the contact.
_Uint32t pressure
The pressure of the touch contact, ranging from 0 to 2^32 - 1.
_Uint32t contact_type
The contact type.

Valid contact types are of type contact_type_e.

_Uint32t select
The selected buttons.

Library:

libinputevents

Description:

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