Table of Contents

Method ToGamepadController

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

ToGamepadController(DesktopWindowInfo, GamepadType, LinkOption, CheckStatusOption)

Converts a MaaFramework.Binding.DesktopWindowInfo to a MaaFramework.Binding.MaaGamepadController.

public static MaaGamepadController ToGamepadController(this DesktopWindowInfo info, GamepadType gamepadType, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)

Parameters

info DesktopWindowInfo

The DesktopWindowInfo.

gamepadType GamepadType

The type of virtual gamepad.

link LinkOption

Executes MaaFramework.Binding.MaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.

check CheckStatusOption

Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.

Returns

MaaGamepadController

A MaaGamepadController.

Exceptions

ArgumentNullException