private static extern int XInputGetCapabilities(int dwUserIndex, DeviceQueryType dwFlags, out Capabilities capabilities);
/// <summary> /// Retrieves the capabilities and features of a connected controller. /// </summary> /// <param name="userIndex">Index of the user's controller. Can be a value in the range 0� </param> /// <param name="deviceQueryType">Type of the device query.</param> /// <param name="capabilities">The capabilities of this controller.</param> /// <returns>True if the controller is connected and succeed, false otherwise.</returns> public static bool GetCapabilities(int userIndex, DeviceQueryType deviceQueryType, out Capabilities capabilities) { return(s_xInput.XInputGetCapabilities(userIndex, deviceQueryType, out capabilities) == 0); }
int IXInput.XInputGetCapabilities(int dwUserIndex, DeviceQueryType dwFlags, out Capabilities capabilities) { return(XInputGetCapabilities(dwUserIndex, dwFlags, out capabilities)); }