public static void Update() { for (int playerI = 0; playerI < Players.Length; ++playerI) { XInputPlayer player = Players[playerI]; player.Update(); } }
static XInput() { Players = new XInputPlayer[MaxPlayerCount]; for (int playerI = 0; playerI < Players.Length; ++playerI) { XInputPlayer player = Players[playerI] = new XInputPlayer(); player.Index = (PlayerIndex)playerI; } }