Method Swipe
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
Swipe(int, int, int, int, int)
Swipes from a starting point to an ending point with duration.
public MaaJob Swipe(int x1, int y1, int x2, int y2, int duration)
Parameters
x1
int-
The horizontal coordinate of the starting point.
y1
int-
The vertical coordinate of the starting point.
x2
int-
The horizontal coordinate of the ending point.
y2
int-
The vertical coordinate of the ending point.
duration
int-
The millisecond of the swipe duration(ms).
Returns
- MaaJob
-
A swipe MaaFramework.Binding.MaaJob.
Remarks
Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaControllerPostSwipe(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32).