/// <summary> /// Constructor for the Input Component /// </summary> /// <param name="game">Game to bind to</param> public InputManager(Game game) : base(game) { // Set this to Update before everything this.UpdateOrder = 0; // Create a Keyboard Input Reference this.Keyboard = new KeyboardInputComponent(game); // Create a Mouse Input Reference this.Mouse = new MouseInputComponent(game); // Add as Service this.Game.Services.AddService(this.GetType(), this); }