IoAbstraction
Public Member Functions | List of all members
iotouch::TouchScreenManager Class Referenceabstract
Inheritance diagram for iotouch::TouchScreenManager:
iotouch::ValueStoringResistiveTouchScreen

Public Member Functions

 TouchScreenManager (TouchInterrogator *interrogator, const TouchOrientationSettings &orientationSettings)
 
void start ()
 
void setUsedForScrolling (bool scrolling)
 
void calibrateMinMaxValues (float xmin, float xmax, float ymin, float ymax)
 
void setCalibration (const CalibrationHandler &other)
 
void enableCalibration (bool ena)
 
TouchOrientationSettings changeOrientation (const TouchOrientationSettings &newOrientation)
 
TouchOrientationSettings getOrientation ()
 
void exec () override
 
virtual void sendEvent (float locationX, float locationY, float touchPressure, TouchState touched)=0
 

Member Function Documentation

◆ sendEvent()

virtual void iotouch::TouchScreenManager::sendEvent ( float  locationX,
float  locationY,
float  touchPressure,
TouchState  touched 
)
pure virtual

You must create a subclass extends from this and takes the three values converting into an event for processing.

Parameters
locationXthe location between 0 and 1 in the X domain
locationYthe location between 0 and 1 in the Y domain
touchedif the panel is current touched

Implemented in iotouch::ValueStoringResistiveTouchScreen.


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