Table of Contents

Enum ControllerOption

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

Option keys for controller instance options. See MaaControllerSetOption().

public enum ControllerOption

Fields

BackgroundManagedKeys = 7

Configure background managed key domain for Win32 controllers.

Must be set before connection. After setting, matching ClickKey / LongPressKey / KeyDown / KeyUp
operations automatically route through the background guardian path.

Only supported by Win32 controllers; other controllers will fail.

value: int32_t array of virtual key codes; val_size: sizeof(int32_t) * count

Invalid = 0
MouseLockFollow = 4

Enable or disable mouse-lock-follow mode for Win32 controllers.

This is designed for TPS/FPS games that lock the mouse to their window in the background.

Only valid for Win32 controllers using message-based input methods.

value: bool, eg: true; val_size: sizeof(bool)

ScreenshotResizeMethod = 6

Set the interpolation method used when resizing screenshots.

Value corresponds to cv::InterpolationFlags:

INTER_NEAREST=0, INTER_LINEAR=1, INTER_CUBIC=2, INTER_AREA=3, INTER_LANCZOS4=4

Default is INTER_AREA (3).

value: int, eg: 3; val_size: sizeof(int)

ScreenshotTargetLongSide = 1

Only one of long and short side can be set, and the other is automatically scaled according to the aspect ratio.

value: int, eg: 1280; val_size: sizeof(int)

ScreenshotTargetShortSide = 2

Only one of long and short side can be set, and the other is automatically scaled according to the aspect ratio.

value: int, eg: 720; val_size: sizeof(int)

ScreenshotUseRawSize = 3

Screenshot use raw size without scaling. Please note that this option may cause incorrect coordinates on user devices with different resolutions if scaling is not performed.

value: bool, eg: true; val_size: sizeof(bool)