/**/ ///<summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input and playing audio. ///</summary> ///<param name=”gameTime”>Provides a snapshot of timing values.</param>
// Allows the default game to exit on Xbox 360 and Windows if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.Exit(); //mouse MouseState mouseState = Mouse.GetState(); if (mouseState.LeftButton == ButtonState.Pressed) {
/**/ ///<summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input and playing audio. ///</summary> ///<param name=”gameTime”>Provides a snapshot of timing values.</param>
// Allows the default game to exit on Xbox 360 and Windows if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.Exit(); //key KeyboardState keyState = Keyboard.GetState(); Keys[] keys = keyState.GetPressedKeys(); foreach (Keys key in keys) {