Method MaaGamepadControllerCreate
- Namespace
- MaaFramework.Binding.Interop.Native
- Assembly
- MaaFramework.Binding.Native.dll
MaaGamepadControllerCreate(nint, ulong, ulong)
Create a virtual gamepad controller for Windows.
public static extern nint MaaGamepadControllerCreate(nint hWnd, ulong gamepadType, ulong screencapMethod)Parameters
hWndnint-
Window handle for screencap (optional, can be nint.Zero if screencap not needed).
gamepadTypeulong-
Type of virtual gamepad (MaaGamepadType_Xbox360 or MaaGamepadType_DualShock4).
screencapMethodulong-
Win32 screencap method to use. Ignored if hWnd is nint.Zero.
Returns
- nint
-
The controller handle, or nint.Zero on failure.
Remarks
Requires ViGEm Bus Driver to be installed on the system.