touch_dev_driver_t Struct Reference

Generic type for a touch driver. More...

Detailed Description

Generic type for a touch driver.

Definition at line 47 of file touch_dev.h.

#include <touch_dev.h>

Data Fields

uint16_t(* height )(const touch_dev_t *dev)
 Get the height of the touch device. More...
 
uint16_t(* width )(const touch_dev_t *dev)
 Get the width of the touch device. More...
 
uint8_t(* touches )(const touch_dev_t *dev, touch_t *touches, size_t len)
 Get the current touches on the touch device. More...
 

Field Documentation

◆ height

uint16_t(* touch_dev_driver_t::height) (const touch_dev_t *dev)

Get the height of the touch device.

Parameters
[in]devPointer to the touch device
Returns
Height in points

Definition at line 56 of file touch_dev.h.

◆ touches

uint8_t(* touch_dev_driver_t::touches) (const touch_dev_t *dev, touch_t *touches, size_t len)

Get the current touches on the touch device.

If touches is NULL, this function only returns the number of touches.

Parameters
[in]devPointer to the touch device
[out]touchesThe array of touches
[in]lenThe touches array len
Returns
number of touch positions, 0 means no touch

Definition at line 77 of file touch_dev.h.

◆ width

uint16_t(* touch_dev_driver_t::width) (const touch_dev_t *dev)

Get the width of the touch device.

Parameters
[in]devPointer to the touch device
Returns
Width in points

Definition at line 65 of file touch_dev.h.


The documentation for this struct was generated from the following file: