A comprehensive touch input simulator for headless testing of Avalonia controls. Provides methods to simulate touch events, multi-touch gestures, pinch/zoom, scroll gestures, and touchpad magnify events.
public class TouchInputSimulator
kind:method, kind:property, kind:ctor. Press Esc to clear.TouchInputSimulator()Creates a new touch input simulator.ActiveTouchPointsGets the active touch points.TimestampGets the current timestamp.AdvanceTime(Int32)Advances the internal timestamp by the specified number of milliseconds.DoubleTap(Interactive, Point, Int32)Simulates a double tap at the specified position.PinchGesture(Interactive, Double, Point, Double, Double)Simulates a pinch gesture event.PinchGestureEnded(Interactive)Simulates a pinch gesture ended event.Reset()Resets the simulator to its initial state.ScrollGesture(Interactive, Vector, Int32)Simulates a scroll gesture event (for trackpad scrolling).ScrollGestureEnded(Interactive, Int32)Simulates a scroll gesture ended event.SimulateDrag(Interactive, Point, Point, Int32)Simulates a single finger drag/pan gesture.SimulatePinchZoom(Interactive, Point, Double, Double, Int32)Simulates a two-finger pinch zoom gesture.SimulateRotation(Interactive, Point, Double, Double, Double, Int32)Simulates a rotation gesture with two fingers.SimulateTwoFingerPan(Interactive, Point, Point, Double, Int32)Simulates a two-finger pan gesture.Swipe(Interactive, Point, SwipeDirection, Double, Int32)Simulates a swipe gesture in a direction.Tap(Interactive, Point, Int32)Simulates a complete tap (press and release) at the specified position.TouchDown(Interactive, Point, Single)Simulates a touch press (finger down) event.TouchMove(Interactive, Int32, Point)Simulates a touch move event.TouchpadMagnify(Interactive, Vector, Point, KeyModifiers)Simulates a touchpad magnify gesture (e.g., macOS pinch-to-zoom on trackpad).TouchpadRotate(Interactive, Double, Point, KeyModifiers)Simulates a touchpad rotate gesture.TouchpadSwipe(Interactive, Vector, Point, KeyModifiers)Simulates a touchpad swipe gesture.TouchUp(Interactive, Int32)Simulates a touch release (finger up) event.