C# Class EzGame.Input.XboxPad

Afficher le fichier Open project: CodeTreeCommunity/Shooter2D

Méthodes publiques

Méthode Description
Holding ( Buttons Button, PlayerIndex PlayerIndex = null ) : bool

Check if a buttton on a pad is being held

Pressed ( Buttons Button, PlayerIndex PlayerIndex = null ) : bool

Check if a buttton on a pad has been pressed

Released ( Buttons Button, PlayerIndex PlayerIndex = null ) : bool

Check if a buttton on a pad has been released

Update ( GameTime Time ) : void

Method Details

Holding() public static méthode

Check if a buttton on a pad is being held
public static Holding ( Buttons Button, PlayerIndex PlayerIndex = null ) : bool
Button Buttons The xbox pad button, to check.
PlayerIndex PlayerIndex The pad (index) to check, use null for ANY pad.
Résultat bool

Pressed() public static méthode

Check if a buttton on a pad has been pressed
public static Pressed ( Buttons Button, PlayerIndex PlayerIndex = null ) : bool
Button Buttons The xbox pad button, to check.
PlayerIndex PlayerIndex The pad (index) to check, use null for ANY pad.
Résultat bool

Released() public static méthode

Check if a buttton on a pad has been released
public static Released ( Buttons Button, PlayerIndex PlayerIndex = null ) : bool
Button Buttons The xbox pad button, to check.
PlayerIndex PlayerIndex The pad (index) to check, use null for ANY pad.
Résultat bool

Update() public static méthode

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