Table of Contents

Method MaaMacOSControllerCreate

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

MaaMacOSControllerCreate(uint, ulong, ulong)

Create a macOS controller for native macOS applications.

public static extern nint MaaMacOSControllerCreate(uint windowId, ulong screencapMethod, ulong inputMethod)

Parameters

windowId uint

The CGWindowID of the target window (0 for desktop).

screencapMethod ulong

macOS screencap method to use.

inputMethod ulong

macOS input method to use.

Returns

nint

The controller handle, or nint.Zero on failure.

Remarks


This controller is designed for native macOS applications.
Requires Screen Recording permission for screencap.
Input simulation requires Accessibility permission.
Some features are not supported: start_app, stop_app, scroll.
Only single touch is supported (contact must be 0).