C# Class EzGame.Input.Keyboard

Afficher le fichier Open project: CodeTreeCommunity/Shooter2D

Méthodes publiques

Méthode 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 méthode

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

Pressed() public static méthode

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

Released() public static méthode

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

Update() public static méthode

public static Update ( GameTime Time ) : void
Time Microsoft.Xna.Framework.GameTime
Résultat void