Example #1
0
        public static void Update()
        {
            for (int playerI = 0; playerI < Players.Length; ++playerI)
            {
                XInputPlayer player = Players[playerI];

                player.Update();
            }
        }
Example #2
0
        static XInput()
        {
            Players = new XInputPlayer[MaxPlayerCount];

            for (int playerI = 0; playerI < Players.Length; ++playerI)
            {
                XInputPlayer player = Players[playerI] = new XInputPlayer();

                player.Index = (PlayerIndex)playerI;
            }
        }