SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
TouchPoint Struct Reference

Represents a single touch point with its properties. More...

#include <TouchPoints.hpp>

Public Attributes

uint16_t x
 X coordinate of the touch point.
 
uint16_t y
 Y coordinate of the touch point.
 
uint16_t pressure
 Pressure value (0 if not supported by the chip).
 
uint8_t id
 Touch point ID for multi‑touch tracking.
 
uint8_t event
 Event type based on actual hardware feedback, most touch devices do not support.
 

Detailed Description

Represents a single touch point with its properties.

Definition at line 39 of file TouchPoints.hpp.

Member Data Documentation

◆ event

uint8_t TouchPoint::event

Event type based on actual hardware feedback, most touch devices do not support.

Definition at line 44 of file TouchPoints.hpp.

Referenced by TouchPoints::addPoint(), TouchDrvCST92xx::getTouchPoints(), and loop().

◆ id

uint8_t TouchPoint::id

Touch point ID for multi‑touch tracking.

Definition at line 43 of file TouchPoints.hpp.

Referenced by TouchPoints::addPoint(), and loop().

◆ pressure

uint16_t TouchPoint::pressure

Pressure value (0 if not supported by the chip).

Definition at line 42 of file TouchPoints.hpp.

Referenced by TouchPoints::addPoint(), and loop().

◆ x

uint16_t TouchPoint::x

X coordinate of the touch point.

Definition at line 40 of file TouchPoints.hpp.

Referenced by TouchPoints::addPoint(), TouchDrvInterface::getPoint(), loop(), touch_drv_isr_handler(), and TouchDrvInterface::updateXY().

◆ y

uint16_t TouchPoint::y

Y coordinate of the touch point.

Definition at line 41 of file TouchPoints.hpp.

Referenced by TouchPoints::addPoint(), TouchDrvInterface::getPoint(), loop(), touch_drv_isr_handler(), and TouchDrvInterface::updateXY().


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