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
optIMaaOption<ControllerOption>?-
The option.
valuebool-
The value.
Returns
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
optorvalueis not supported.