#include <ResistiveTouchScreen.h>
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 |
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.
|
overridevirtual |
You must create a subclass extends from this and takes the three values converting into an event for processing.
locationX | the location between 0 and 1 in the X domain |
locationY | the location between 0 and 1 in the Y domain |
touched | if the panel is current touched |
Implements iotouch::TouchScreenManager.