device_two_finger_swipe
Two-finger swipe from (x1,y1) to (x2,y2) on an Android device — a two-finger scroll/pan. Both fingers travel the vector in parallel, offset perpendicular to it so one never runs through the other. Use where a one-finger swipe does the wrong thing, e.g. tilting a map or scrolling a view that pans with one finger. Coordinates are PHYSICAL pixels.Pass input="hid" to require the virtual touchscreen: the gesture then reaches the app as real kernel input and fails loudly instead of silently falling back to injected input. That strict path used to be device_uhid_two_finger_swipe, which stays callable under its old name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X | |
| x2 | Yes | End X | |
| y1 | Yes | Start Y | |
| y2 | Yes | End Y | |
| gap | No | Pixels between the two contacts (default: 120) | |
| udid | Yes | Device serial number (UDID) | |
| input | No | Input path. 'auto' (default) prefers the virtual touchscreen and falls back to injected input. 'hid' requires the virtual touchscreen and fails if the device does not provide one — use it when the gesture must be real kernel input or must fail loudly. | |
| duration | No | Gesture duration in ms (default: 400) |