Method SetOption_BackgroundManagedKeys
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
SetOption_BackgroundManagedKeys(IMaaOption<ControllerOption>?, IEnumerable<int>)
Configure background managed key domain for Win32 controllers.
public static bool SetOption_BackgroundManagedKeys(this IMaaOption<ControllerOption>? opt, IEnumerable<int> value)Parameters
optIMaaOption<ControllerOption>?-
The option.
valueIEnumerable<int>-
The value.
Returns
Remarks
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
Exceptions
- ArgumentNullException
- NotSupportedException
-
The
optorvalueis not supported.