public XInputCapabilities GetCapabilities() { XInputCapabilities capabilities = new XInputCapabilities(); XInputNative.XInputGetCapabilities(_playerIndex, XInputConstants.XINPUT_FLAG_GAMEPAD, ref capabilities); return(capabilities); }
public XInputCapabilities GetCapabilities() { XInputCapabilities capabilities = new XInputCapabilities(); try { XInputNative.XInputGetCapabilities(_playerIndex, XInputConstants.XINPUT_FLAG_GAMEPAD, ref capabilities); } catch (Exception) { // import errors } return(capabilities); }