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.
TouchInput Class Reference

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 ()
 

Detailed Description

Object that gathers the touch events from the underlying device.

Constructor & Destructor Documentation

◆ TouchInput()

TouchInput::TouchInput ( const std::string &  device_name,
TouchEventCallback  callback,
int  samples,
int  slots 
)

Creates an instance of TouchInput.

Parameters
device_nameThe touch device path
callbackThe callback for a touch event
samplesThe samples to read (how many sqeuential touch events to read)
slotsThe touch slots (how many touch points to read, depends on the touch device)

◆ ~TouchInput()

TouchInput::~TouchInput ( )

Member Function Documentation

◆ poll()

void TouchInput::poll ( )

◆ setTouchEventCallback()

void TouchInput::setTouchEventCallback ( TouchEventCallback  callback)

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