/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Program.Game = new MomolikeGame()) { Game.Run(); } }
public InputHandler(MomolikeGame game) : base(game) { _keyboardState = Keyboard.GetState(); _gamePadStates = new GamePadState[Enum.GetValues(typeof(PlayerIndex)).Length]; foreach (PlayerIndex index in Enum.GetValues(typeof(PlayerIndex))) _gamePadStates[(int)index] = GamePad.GetState(index); }