IoAbstraction
Loading...
Searching...
No Matches
iotouch::TouchOrientationSettings Class Reference

#include <ResistiveTouchScreen.h>

Public Member Functions

 TouchOrientationSettings (bool swapAxisXY, bool xIsInverted, bool yIsInverted)
 TouchOrientationSettings (const TouchOrientationSettings &other)=default
TouchOrientationSettingsoperator= (const TouchOrientationSettings &other)=default
bool isOrientationSwapped () const
bool isXInverted () const
bool isYInverted () const

Detailed Description

Touch screens don't really have traditional orientation such as Landscape and Portrait. It's better expressed as if the XY planes need to be swapped, and if any of the values need to be inverted, because it really often depends on how the touch screen was applied to the screen, this gives full control over every plane, by allow each to be independently inverted, and then the result of that swapped.

Constructor & Destructor Documentation

◆ TouchOrientationSettings()

iotouch::TouchOrientationSettings::TouchOrientationSettings ( bool swapAxisXY,
bool xIsInverted,
bool yIsInverted )
inline

Construct a touch settings object providing the orientation and invert parameters.

Parameters
swapAxisXYif the XY value should become YX
xIsInvertedif the X values need to be inverted
yIsInvertedif the Y values need to be inverted

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