#include <ResistiveTouchScreen.h>
Public Member Functions | |
TouchOrientationSettings (bool swapAxisXY, bool xIsInverted, bool yIsInverted) | |
TouchOrientationSettings (const TouchOrientationSettings &other)=default | |
TouchOrientationSettings & | operator= (const TouchOrientationSettings &other)=default |
bool | isOrientationSwapped () const |
bool | isXInverted () const |
bool | isYInverted () const |
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.
|
inline |
Construct a touch settings object providing the orientation and invert parameters.
swapAxisXY | if the XY value should become YX |
xIsInverted | if the X values need to be inverted |
yIsInverted | if the Y values need to be inverted |