/// <summary> /// Initializes the internal state of the service /// </summary> public override void Initialize() { oldKeyboardState = Keyboard.GetState(); oldMouseState = Mouse.GetState(); oldGamePadState = GamePad.GetState(Microsoft.Xna.Framework.PlayerIndex.One); betterMouse = new BetterMouse(Game); betterMouse.Initialize(); base.Initialize(); }
public override void Initialize() { this.Color = Microsoft.Xna.Framework.Graphics.Color.White; this.inputManager = (IInputManagerService)Game.Services.GetService(typeof(IInputManagerService)); this.mouse = inputManager.BetterMouse; base.Initialize(); }