public static GamePadData GetData(int deviceIndex) { GamePadData padData = default(GamePadData); int errorCode = GamePad.GetDataNative(deviceIndex, ref padData); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } return(padData); }
private static extern int GetDataNative(int deviceIndex, ref GamePadData gamePadData);