Interface IMaaController
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
An interface defining wrapped members for MaaController.
public interface IMaaController : IMaaCommon, IMaaOption<ControllerOption>, IMaaPost, IMaaDisposable, IDisposable
Implements
Extension Methods
Properties
- IsConnected
-
Gets whether the MaaFramework.Binding.IMaaController is connected to the device specified by the constructor.
- Uuid
-
Gets the uuid string of the MaaFramework.Binding.IMaaController.
Methods
- Click(int, int)
-
Clicks a point.
- ClickKey(int)
-
Clicks a key.
For adb controller,
keyCode
is from android key event.For win32 controller,
keyCode
is from windows virtual key. - GetCachedImage(IMaaImageBuffer)
-
Gets the cached image.
- InputText(string)
-
Inputs a text.
- KeyDown(int)
-
Usage: KeyDown -> KeyUp.
For adb controller,
keyCode
is from android key event.For win32 controller,
keyCode
is from windows virtual key. - KeyUp(int)
-
Usage: KeyDown -> KeyUp.
For adb controller,
keyCode
is from android key event.For win32 controller,
keyCode
is from windows virtual key. - LinkStart()
-
Connects the device specified by the constructor.
- PressKey(int)
-
Presses a key.
For adb controller,
keyCode
is from android key event.For win32 controller,
keyCode
is from windows virtual key. - Screencap()
-
Takes a screenshot.
- StartApp(string)
-
Starts an app.
- StopApp(string)
-
Stops an app.
- Swipe(int, int, int, int, int)
-
Swipes from a starting point to an ending point with duration.
- TouchDown(int, int, int, int)
-
Usage: TouchDown -> TouchMove -> TouchUp.
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). - TouchMove(int, int, int, int)
-
Usage: TouchDown -> TouchMove -> TouchUp.
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). - TouchUp(int)
-
Usage: TouchDown -> TouchMove -> TouchUp.
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).