|
roo_display
API Documentation for roo_display
|
#include <basic_touch.h>
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 |
Definition at line 14 of file basic_touch.h.
|
inline |
Definition at line 34 of file basic_touch.h.
|
virtualdefault |
|
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.
| points | Output buffer for touch points. |
| max_points | Capacity of points. |
Implements roo_display::TouchDevice.
Definition at line 64 of file basic_touch.h.
|
protectedpure virtual |