10 std::swap(
p.vx,
p.vy);
12 if (
p.x < bounds_.
xMin())
p.x = bounds_.
xMin();
13 if (
p.x > bounds_.
xMax())
p.x = bounds_.
xMax();
14 if (
p.y < bounds_.
yMin())
p.y = bounds_.
yMin();
15 if (
p.y > bounds_.
yMax())
p.y = bounds_.
yMax();
20 p.vx = ((
int32_t)4096 *
p.vx + w / 2) / w;
21 p.vy = ((
int32_t)4096 *
p.vy + h / 2) / h;
int16_t width() const
Width in pixels (inclusive coordinates).
int16_t xMin() const
Minimum x (inclusive).
int16_t xMax() const
Maximum x (inclusive).
int16_t height() const
Height in pixels (inclusive coordinates).
int16_t yMax() const
Maximum y (inclusive).
int16_t yMin() const
Minimum y (inclusive).
bool isRightToLeft() const
Return whether horizontal direction is right-to-left.
bool isBottomToTop() const
Return whether vertical direction is bottom-to-top.
bool isXYswapped() const
Return whether x maps to the vertical direction.
void Calibrate(TouchPoint &point)
Apply calibration and orientation to the given touch point.
Defines 140 opaque HTML named colors.
A single touch point returned by a touch controller.