|
TouchCPLib
1.0.0
A touch-enabled GUI interface based on SDL and libTS. It provides a simple desktop-free UI for your embedded Raspberry projects.
|
Object that gathers the touch events from the underlying device. More...
#include <TouchInput.h>
Public Member Functions | |
| TouchInput (const std::string &device_name, TouchEventCallback callback, int samples, int slots) | |
| Creates an instance of TouchInput. More... | |
| ~TouchInput () | |
| void | setTouchEventCallback (TouchEventCallback callback) |
| void | poll () |
Object that gathers the touch events from the underlying device.
| TouchInput::TouchInput | ( | const std::string & | device_name, |
| TouchEventCallback | callback, | ||
| int | samples, | ||
| int | slots | ||
| ) |
Creates an instance of TouchInput.
| device_name | The touch device path |
| callback | The callback for a touch event |
| samples | The samples to read (how many sqeuential touch events to read) |
| slots | The touch slots (how many touch points to read, depends on the touch device) |
| TouchInput::~TouchInput | ( | ) |
| void TouchInput::poll | ( | ) |
| void TouchInput::setTouchEventCallback | ( | TouchEventCallback | callback | ) |