IoAbstraction
Public Member Functions | List of all members
iotouch::ValueStoringResistiveTouchScreen Class Reference

#include <ResistiveTouchScreen.h>

Inheritance diagram for iotouch::ValueStoringResistiveTouchScreen:
iotouch::TouchScreenManager

Public Member Functions

 ValueStoringResistiveTouchScreen (TouchInterrogator &interrogator, const TouchOrientationSettings &rotation)
 
void sendEvent (float locationX, float locationY, float pressure, TouchState touched) override
 
float getTouchPressure () const
 
float getLastX () const
 
float getLastY () const
 
bool isPressed () const
 
TouchState getTouchState () const
 
- Public Member Functions inherited from iotouch::TouchScreenManager
 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
 

Detailed Description

Handles the touch screen interface by storing the latest values for later use. This allows for simple uses of touch screen without creating a sub class, by just getting the latest values as needed.

Member Function Documentation

◆ sendEvent()

void iotouch::ValueStoringResistiveTouchScreen::sendEvent ( float  locationX,
float  locationY,
float  touchPressure,
TouchState  touched 
)
overridevirtual

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

Implements iotouch::TouchScreenManager.


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