Method ToGamepadControllerWith
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
ToGamepadControllerWith(DesktopWindowInfo, GamepadType, Win32ScreencapMethod?, nint?, LinkOption, CheckStatusOption)
Converts a MaaFramework.Binding.DesktopWindowInfo to a MaaFramework.Binding.MaaGamepadController.
public static MaaGamepadController ToGamepadControllerWith(this DesktopWindowInfo info, GamepadType gamepadType, Win32ScreencapMethod? screencapMethod = null, nint? hWnd = null, LinkOption link = LinkOption.Start, CheckStatusOption check = CheckStatusOption.ThrowIfNotSucceeded)Parameters
infoDesktopWindowInfo-
The DesktopWindowInfo.
gamepadTypeGamepadType-
The type of virtual gamepad.
screencapMethodWin32ScreencapMethod?-
The screencap method.
hWndnint?-
The new handle to a win32 window.
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.