roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::TouchPoint Struct Reference

A single touch point returned by a touch controller. More...

#include <device.h>

Public Member Functions

 TouchPoint ()
 

Data Fields

uint16_t id
 ID assigned by the driver, for tracking. For non-multitouch devices, this should be left at zero.
 
int16_t x
 X-coordinate of the touch.
 
int16_t y
 Y-coordinate of the touch.
 
int16_t z
 Z-coordinate of the touch (pressure). Range [0-4095]. Drivers that don't support it should report 1024.
 
int32_t vx
 X-axis velocity at the touch point, in pixels/sec.
 
int32_t vy
 Y-axis velocity at the touch point, in pixels/sec.
 

Detailed Description

A single touch point returned by a touch controller.

Definition at line 390 of file device.h.

Constructor & Destructor Documentation

◆ TouchPoint()

roo_display::TouchPoint::TouchPoint ( )
inline

Definition at line 391 of file device.h.

Field Documentation

◆ id

uint16_t roo_display::TouchPoint::id

ID assigned by the driver, for tracking. For non-multitouch devices, this should be left at zero.

Definition at line 395 of file device.h.

◆ vx

int32_t roo_display::TouchPoint::vx

X-axis velocity at the touch point, in pixels/sec.

Definition at line 408 of file device.h.

Referenced by roo_display::TouchDisplay::getTouch().

◆ vy

int32_t roo_display::TouchPoint::vy

Y-axis velocity at the touch point, in pixels/sec.

Definition at line 411 of file device.h.

Referenced by roo_display::TouchDisplay::getTouch().

◆ x

int16_t roo_display::TouchPoint::x

X-coordinate of the touch.

Definition at line 398 of file device.h.

Referenced by roo_display::Display::getTouch(), and roo_display::TouchDisplay::getTouch().

◆ y

int16_t roo_display::TouchPoint::y

Y-coordinate of the touch.

Definition at line 401 of file device.h.

Referenced by roo_display::Display::getTouch(), and roo_display::TouchDisplay::getTouch().

◆ z

int16_t roo_display::TouchPoint::z

Z-coordinate of the touch (pressure). Range [0-4095]. Drivers that don't support it should report 1024.

Definition at line 405 of file device.h.


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