C# Class SolutionLecture5.InputManager

Show file Open project: Westerdals/PG2200LectureCode2013 Class Usage Examples

Public Methods

Method Description
Initialize ( Microsoft.Xna.Framework.Game game ) : void
IsKeyDown ( Keys key ) : bool
IsKeyPressed ( Keys key ) : bool
IsKeyReleased ( Keys key ) : bool
IsKeyUp ( Keys key ) : bool
Update ( GameTime gameTime ) : void

Method Details

Initialize() public method

public Initialize ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game
return void

IsKeyDown() public method

public IsKeyDown ( Keys key ) : bool
key Keys
return bool

IsKeyPressed() public method

public IsKeyPressed ( Keys key ) : bool
key Keys
return bool

IsKeyReleased() public method

public IsKeyReleased ( Keys key ) : bool
key Keys
return bool

IsKeyUp() public method

public IsKeyUp ( Keys key ) : bool
key Keys
return bool

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void