Table of Contents

Method SetOption_MouseLockFollow

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOption_MouseLockFollow(IMaaOption<ControllerOption>?, bool)

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

public static bool SetOption_MouseLockFollow(this IMaaOption<ControllerOption>? opt, bool value)

Parameters

opt IMaaOption<ControllerOption>?

The option.

value bool

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Remarks

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)

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.