Table of Contents

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

hWnd nint

Window handle for screencap (optional, can be nint.Zero if screencap not needed).

gamepadType ulong

Type of virtual gamepad (MaaGamepadType_Xbox360 or MaaGamepadType_DualShock4).

screencapMethod ulong

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.