Updated: October 28, 2024 |
Types of INPUT_CLASS_MTOUCH events
#include <input/event_types.h>
typedef enum { INPUT_EVENT_UNKNOWN = 0, INPUT_EVENT_MTOUCH_TOUCH = 100, INPUT_EVENT_MTOUCH_MOVE, INPUT_EVENT_MTOUCH_RELEASE, INPUT_EVENT_MTOUCH_CANCEL } input_event_e;
One event type is received per touchpoint. For example, if you have two fingers in contact with the screen, you will receive two INPUT_EVENT_MTOUCH_TOUCH events. Similarly, if you remove two fingers from contact with the screen, you will receive two INPUT_EVENT_MTOUCH_RELEASE events, one for each finger. The touch-related events are identified individually through a contact ID.