Example #1
0
        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);
        }
Example #2
0
 private static extern int GetDataNative(int deviceIndex, ref GamePadData gamePadData);