glass_gesture
Simulate multi-touch gestures like pinch, rotate, and swipe on a screen using 2-10 pointers with straight from‑to segments. Supports held fingers and adjustable duration; returns an error if the backend lacks multi-touch support.
Instructions
Perform a multi-touch gesture: 2–10 pointers, each a straight from→to segment in window-relative px, all down together at t=0 and up at duration_ms. Pinch = two pointers toward/apart; rotate = two on an arc; two-finger swipe = two parallel segments; a from==to pointer is held. Multi-touch isn't available on every backend — it returns a clear Unsupported error where the active backend can't do it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pointers | Yes | 2–10 simultaneous pointers; each a straight from→to segment. Pinch = two pointers moving toward/apart; rotate = two on an arc; two-finger swipe = two parallel segments. | |
| duration_ms | No | Span the gesture over this many ms (all pointers down at 0, up at duration). Default 250. |