C# Class EzGame.Input.Keyboard

Mostrar archivo Open project: CodeTreeCommunity/Shooter2D

Public Methods

Method Description
Holding ( Keys Key ) : bool

Check if a key on the keyboard is being held

Pressed ( Keys Key ) : bool

Check if a key on the keyboard has been pressed

Released ( Keys Key ) : bool

Check if a key on the keyboard has been released

Update ( GameTime Time ) : void

Method Details

Holding() public static method

Check if a key on the keyboard is being held
public static Holding ( Keys Key ) : bool
Key Keys The keyboard key to check.
return bool

Pressed() public static method

Check if a key on the keyboard has been pressed
public static Pressed ( Keys Key ) : bool
Key Keys The keyboard key to check.
return bool

Released() public static method

Check if a key on the keyboard has been released
public static Released ( Keys Key ) : bool
Key Keys The keyboard key to check.
return bool

Update() public static method

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