Class MaaController
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
A wrapper class providing a reference implementation for MaaFramework.Binding.Interop.Native.MaaController.
public abstract class MaaController : MaaCommon, IMaaController<nint>, IMaaController, IMaaCommon, IMaaOption<ControllerOption>, IMaaPost, IMaaDisposableHandle<nint>, IMaaDisposable, IDisposable
Inheritance
Derived
Implements
Inherited Members
Extension Methods
Constructors
- MaaController()
-
Creates a MaaFramework.Binding.MaaController instance.
Properties
- Uuid
-
Gets the uuid string of the MaaFramework.Binding.IMaaController.
Methods
- Click(int, int)
-
Clicks a point.
- GetCachedImage(IMaaImageBuffer)
-
Gets the cached image.
- GetCachedImage(IMaaImageBuffer<nint>)
-
Gets the cached image.
- GetStatus(MaaJob)
-
Gets the current status of a MaaFramework.Binding.MaaJob.
- InputText(string)
-
Inputs a text.
- LinkStart()
-
Connects the address specified by the constructor.
- LinkStop()
-
Ends the connection of the address specified by the constructor.
- PressKey(int)
-
Presses a key.
- ReleaseHandle()
-
When overridden in a derived class, executes the code required to free the handle.
- Screencap()
-
Takes a screenshot.
- SetOption<T>(ControllerOption, T)
-
Sets value to an option.
- 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.
- TouchMove(int, int, int, int)
-
Usage: TouchDown -> TouchMove -> TouchUp.
- TouchUp(int)
-
Usage: TouchDown -> TouchMove -> TouchUp.
- Wait(MaaJob)
-
Waits a MaaFramework.Binding.MaaJob.