mtouch_driver_process_packet()

Process the data packet from the specified driver.

Synopsis:

#include <input/mtouch_driver.h>
 
void mtouch_driver_process_packet(struct mtouch_device *device, void *packet, void *arg, unsigned int flags)

Arguments:

device

Handle to the touch device.

packet

Data packet that contains information on the touch-related event.

arg

User information that resulted from initializing your driver.

flags

Internal use only.

Library:

libinputevents

Description:

This function takes the data packet from the specfied driver and extracts information from it. The relevant information from the driver's data packet will be used to create an mtouch_event_t so that the Input Events framework can continue to process it and pass it to Screen. Drivers must call this function with a packet from which data for all digits currently in contact with the touchscreen can be retrieved. For example, if there are two digits in contact with the touchscreen, then information for the contact of both digits must be included in the single data packet. Drivers must not call this function multiple times when multiple digits are simultaneously touching. This situation would result in multiple touch and release events instead of an intended single move event.

Returns:

Nothing.