C# Class tetris.KBInput

Afficher le fichier Open project: ttocs7/tetris Class Usage Examples

Méthodes publiques

Méthode Description
UpdateWithNewState ( KeyboardState newState, GameTime gameTime ) : void
WasKeyPressed ( Keys key, bool repeat ) : bool

Method Details

UpdateWithNewState() public méthode

public UpdateWithNewState ( KeyboardState newState, GameTime gameTime ) : void
newState Microsoft.Xna.Framework.Input.KeyboardState
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

WasKeyPressed() public méthode

public WasKeyPressed ( Keys key, bool repeat ) : bool
key Keys
repeat bool
Résultat bool