Ink Input
The stylus used on Tablet PCs and other ink-enabled systems has its own set of events. Table 4-3 shows the ink input events offered by user interface elements.
Table 4-3. Stylus and ink events
Event | Routing | Meaning |
|---|---|---|
| Bubble | Element captured stylus. |
| Bubble | Element lost stylus capture. |
| Tunnel, Bubble | Stylus button pressed while over element. |
| Tunnel, Bubble | Stylus button released while over element. |
| Tunnel, Bubble | Stylus touched screen while over element. |
| Tunnel, Bubble | Stylus left screen while over element. |
| Direct | Stylus moved into element. |
| Direct | Stylus left element. |
| Tunnel, Bubble | Stylus moved close enough to screen to be detected. |
| Tunnel, Bubble | Stylus moved out of detection range. |
| Tunnel, Bubble | Stylus moved while over element. |
| Tunnel, Bubble | Stylus moved while over element but not in contact with screen. |
| Tunnel, Bubble | Stylus performed a gesture. |
| Tunnel, Bubble | Element received text input. |
The Stylus class provides a
static Capture method that works
exactly the same as the Mouse.Capture
method described earlier. It also offers Captured and DirectlyOver properties that do the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access