public override void LoadContent() { base.LoadContent(); Texture2D cTex = content.Load<Texture2D>(@"Textures/cursor"); Color transparentColour = Color.White; _cursor = new MouseHandler(new Vector2(0f, 0f), cTex, transparentColour); }
/// <summary> /// Constructs a new input state. /// </summary> public InputState() { CurrentKeyboardStates = new KeyboardState[MaxInputs]; CurrentGamePadStates = new GamePadState[MaxInputs]; LastKeyboardStates = new KeyboardState[MaxInputs]; LastGamePadStates = new GamePadState[MaxInputs]; Mouse = new MouseHandler(); GamePadWasConnected = new bool[MaxInputs]; }