Table of Contents

Method Click

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

Click(int, int, int, int)

Clicks a point.

For adb controller, contact means finger id (0 for first finger, 1 for second finger, etc.).

For win32 controller, contact means mouse button id (0 for left, 1 for right, 2 for middle).

public MaaJob Click(int x, int y, int contact = 0, int pressure = 1)

Parameters

x int

The horizontal coordinate of the point.

y int

The vertical coordinate of the point.

contact int

The contact id.

pressure int

The pressure.

Returns

MaaJob

A click MaaFramework.Binding.MaaJob.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaControllerPostClickV2(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32).