TouchScreenAdapter v0.5.0
TouchScreenAdapter is a library providing a unified touchscreen API.
Public Member Functions | Public Attributes | List of all members
TouchScreenAdapter::TouchPoint Struct Reference

Description

A consistent struct containing points X & Y plus Z as pressure.

#include <TouchScreenAdapter.h>

Public Member Functions

 TouchPoint (void)
 Construct a new Touch Point object.
 
 TouchPoint (int16_t _x, int16_t _y, int16_t _z)
 Construct a new Touch Point object. More...
 
TouchPointoperator= (const TouchPoint &tp)
 Assignment operator. More...
 

Public Attributes

uint16_t x = 0
 Mapped 0 to screen width -1.
 
uint16_t y = 0
 Mapped 0 to screen height -1.
 
uint16_t z = 0
 Mapped 0-255 representing pressure (0 = not touched). is uint16_t because raw is odten > 255.
 

Constructor & Destructor Documentation

◆ TouchPoint()

TouchScreenAdapter::TouchPoint::TouchPoint ( int16_t  _x,
int16_t  _y,
int16_t  _z 
)
inline

Construct a new Touch Point object.

Parameters
_x
_y
_z

Member Function Documentation

◆ operator=()

TouchPoint & TouchScreenAdapter::TouchPoint::operator= ( const TouchPoint tp)
inline

Assignment operator.

Parameters
tpA TouchPoint
Returns
TouchPoint&

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