/// <summary> /// Add an external controller device to X-Device SDK. /// </summary> public static int AddExternalControllerDevice(string name, ControllerStateDelegate converter, SendMessageDelegate sender) { System.IntPtr ptr = Marshal.StringToHGlobalAnsi(name); int ret = NativeMethods.XDeviceAddExternalControllerDevice(ptr, converter, sender); Marshal.FreeHGlobal(ptr); return(ret); }
public static extern int XDeviceAddExternalControllerDevice(System.IntPtr name, ControllerStateDelegate converter, SendMessageDelegate sender);