C# Class SpaceCats_v2.InputManager

Exibir arquivo Open project: acm-team/SpaceCats Class Usage Examples

Public Methods

Method Description
InputManager ( Main game ) : System
IsKeyDown ( GameControl control ) : bool
IsKeyDown ( Keys key ) : bool
KeyPressed ( GameControl control ) : bool
KeyPressed ( Keys key ) : bool
KeyReleased ( GameControl control ) : bool
KeyReleased ( Keys key ) : bool
Reset ( ) : void
SetDefaultControls ( ) : void
Update ( GameTime gametime ) : void

Method Details

InputManager() public method

public InputManager ( Main game ) : System
game Main
return System

IsKeyDown() public method

public IsKeyDown ( GameControl control ) : bool
control GameControl
return bool

IsKeyDown() public method

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

KeyPressed() public method

public KeyPressed ( GameControl control ) : bool
control GameControl
return bool

KeyPressed() public method

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

KeyReleased() public method

public KeyReleased ( GameControl control ) : bool
control GameControl
return bool

KeyReleased() public method

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

Reset() public method

public Reset ( ) : void
return void

SetDefaultControls() public method

public SetDefaultControls ( ) : void
return void

Update() public method

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