Expand description
The pointer, resolved: raw motions and button edges in, one
Event a frame out.
What a click is, when a press becomes a drag and how close two clicks have to be to be one double-click are decided here, once, with the thresholds a desktop toolkit uses โ so a host reports what its pointer did and never what it meant.
Structsยง
- Click ๐
- Pressed ๐
- The primary button held: where it went down, when, and what has been made of it since.
- Resolver
- The state one pointer carries between frames.
Enumsยง
- Over ๐
- Whether the pointer is over the canvas: a hover is reported only while it is.
- Phase ๐
- What a held press has become.
Constantsยง
- MAX_
CLICK_ ๐DIST - How far a press may travel and still be a click, in screen points.
- MAX_
CLICK_ ๐DURATION - How long a press may be held and still be a click.
- MAX_
DOUBLE_ ๐CLICK_ DELAY - How soon after one click a second is a double-click.