|
gramods
|
A single (potentially smoothed) touch point. More...
#include <TouchState.hh>

Public Member Functions | |
| TouchPoint (TouchPointId id, float x, float y) | |
| Constructs a positioned touch point with id. | |
| TouchPoint () | |
| Constructs an empty touch point. | |
Public Attributes | |
| float | x |
| x position in (sub) pixels from left edge. | |
| float | y |
| y position in (sub) pixels from top edge. | |
| float | vx |
| x velocity in pixels per second from left edge. | |
| float | vy |
| y velocity in pixels per second from top edge. | |
| float | ex |
| x position estimated by the recent motion. | |
| float | ey |
| y position estimated by the recent motion. | |
| float | sx |
| smoothed version of the x position. | |
| float | sy |
| smoothed version of the y position. | |
| TouchPointId | id |
| internal id of the touch point. | |
| unsigned char | state |
| State of the touch point expressed as a bitwise combination. | |
| unsigned int | clicks |
| The number of times this position was clicked in succession, for example two (2) for a double click. | |
A single (potentially smoothed) touch point.
| gramods::gmTouch::TouchState::TouchPoint::TouchPoint | ( | TouchPointId | id, |
| float | x, | ||
| float | y | ||
| ) |
Constructs a positioned touch point with id.
| gramods::gmTouch::TouchState::TouchPoint::TouchPoint | ( | ) |
Constructs an empty touch point.
| unsigned int gramods::gmTouch::TouchState::TouchPoint::clicks |
The number of times this position was clicked in succession, for example two (2) for a double click.
| float gramods::gmTouch::TouchState::TouchPoint::ex |
x position estimated by the recent motion.
| float gramods::gmTouch::TouchState::TouchPoint::ey |
y position estimated by the recent motion.
| TouchPointId gramods::gmTouch::TouchState::TouchPoint::id |
internal id of the touch point.
| unsigned char gramods::gmTouch::TouchState::TouchPoint::state |
| float gramods::gmTouch::TouchState::TouchPoint::sx |
smoothed version of the x position.
| float gramods::gmTouch::TouchState::TouchPoint::sy |
smoothed version of the y position.
| float gramods::gmTouch::TouchState::TouchPoint::vx |
x velocity in pixels per second from left edge.
| float gramods::gmTouch::TouchState::TouchPoint::vy |
y velocity in pixels per second from top edge.
| float gramods::gmTouch::TouchState::TouchPoint::x |
x position in (sub) pixels from left edge.
| float gramods::gmTouch::TouchState::TouchPoint::y |
y position in (sub) pixels from top edge.