C# Class tetris.KBInput

Datei anzeigen Open project: ttocs7/tetris Class Usage Examples

Public Methods

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

Method Details

UpdateWithNewState() public method

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

WasKeyPressed() public method

public WasKeyPressed ( Keys key, bool repeat ) : bool
key Keys
repeat bool
return bool