Table of Contents

Method SetOption<T>

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

SetOption<T>(ControllerOption, T)

Sets value to an option.

public bool SetOption<T>(ControllerOption opt, T value)

Parameters

opt ControllerOption

The option.

value T

The value.

Returns

bool

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

Type Parameters

T

The type specified by the opt(see remarks of enumerations).

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaController.MaaControllerSetOption(System.IntPtr,System.Int32,System.Byte[],System.UInt64).

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.