mtouch_driver_attach()

Attach driver to the Input Events framework.

Synopsis:

#include <input/mtouch_driver.h>
 
struct mtouch_device* mtouch_driver_attach(mtouch_driver_params_t *params, mtouch_driver_funcs_t *funcs)

Arguments:

params

Configured parameters for your driver.

funcs

Callback functions that are implemented by the mtouch driver. The Input Events framework will use these callback functions to retrieve required information from the driver.

Library:

libinputevents

Description:

This function connects the driver with the specified parameters and callback functions to the Input Events frameowrk. You need to configure params and funcs before passing them as arguments to this function. This function must be called when you initialize your driver.

Returns:

A handle to the opaque data type that represents the touch device.