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
infoDesktopWindowInfo-
The DesktopWindowInfo.
gamepadTypeGamepadType-
The type of virtual gamepad.
linkLinkOption-
Executes MaaFramework.Binding.MaaController.LinkStart if MaaFramework.Binding.LinkOption.Start; otherwise, not link.
checkCheckStatusOption-
Checks LinkStart().Wait() status if MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not check.
Returns
- MaaGamepadController
-
A MaaGamepadController.