roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::BasicTouchDevice< max_touch_points > Class Template Referenceabstract

#include <basic_touch.h>

Inheritance diagram for roo_display::BasicTouchDevice< max_touch_points >:
[legend]
Collaboration diagram for roo_display::BasicTouchDevice< max_touch_points >:
[legend]

Data Structures

struct  Config
 

Public Member Functions

 BasicTouchDevice (Config config)
 
virtual ~BasicTouchDevice ()=default
 
TouchResult getTouch (TouchPoint *points, int max_points) override
 Read the current touch state.
 
- Public Member Functions inherited from roo_display::TouchDevice
virtual ~TouchDevice ()=default
 
virtual void initTouch ()
 Initialize the touch controller.
 

Protected Member Functions

virtual int readTouch (TouchPoint *points)=0
 

Detailed Description

template<int max_touch_points>
class roo_display::BasicTouchDevice< max_touch_points >

Definition at line 14 of file basic_touch.h.

Constructor & Destructor Documentation

◆ BasicTouchDevice()

template<int max_touch_points>
roo_display::BasicTouchDevice< max_touch_points >::BasicTouchDevice ( Config  config)
inline

Definition at line 34 of file basic_touch.h.

◆ ~BasicTouchDevice()

template<int max_touch_points>
virtual roo_display::BasicTouchDevice< max_touch_points >::~BasicTouchDevice ( )
virtualdefault

Member Function Documentation

◆ getTouch()

template<int max_touch_points>
TouchResult roo_display::BasicTouchDevice< max_touch_points >::getTouch ( TouchPoint points,
int  max_points 
)
overridevirtual

Read the current touch state.

If no touch is registered, returns {.touch_points = 0} and does not modify points. If $k$ touch points are registered, writes min(k, max_points) entries to points, and returns {.touch_points = k}. In both cases, the returned timestamp is the detection time.

Parameters
pointsOutput buffer for touch points.
max_pointsCapacity of points.
Returns
Touch result metadata.

Implements roo_display::TouchDevice.

Definition at line 64 of file basic_touch.h.

◆ readTouch()


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