C# Class EzGame.Input.XboxPad

Mostrar archivo Open project: CodeTreeCommunity/Shooter2D

Public Methods

Method 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 method

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.
return bool

Pressed() public static method

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.
return bool

Released() public static method

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.
return bool

Update() public static method

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