C# Class CarpMuffin.Input.GamePadManager

Manages Gamepads
Inheritance: IUpdatable
Afficher le fichier Open project: BetaToast/CarpMuffin Class Usage Examples

Méthodes publiques

Méthode Description
GamePadManager ( ) : CarpMuffin.Graphics
GetCurrentButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
GetCurrentState ( PlayerIndex playerIndex ) : GamePadState
GetPreviousButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
GetPreviousState ( PlayerIndex playerIndex ) : GamePadState
IsAnyButtonPressed ( PlayerIndex playerIndex ) : bool
IsButtonHeld ( PlayerIndex playerIndex, Buttons button ) : bool
IsButtonPressed ( PlayerIndex playerIndex, Buttons button ) : bool
IsButtonReleased ( PlayerIndex playerIndex, Buttons button ) : bool
IsConnected ( PlayerIndex playerIndex ) : bool
Update ( GameTime gameTime ) : void

Method Details

GamePadManager() public méthode

public GamePadManager ( ) : CarpMuffin.Graphics
Résultat CarpMuffin.Graphics

GetCurrentButtonState() public méthode

public GetCurrentButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
playerIndex PlayerIndex
Résultat GamePadButtonState

GetCurrentState() public méthode

public GetCurrentState ( PlayerIndex playerIndex ) : GamePadState
playerIndex PlayerIndex
Résultat Microsoft.Xna.Framework.Input.GamePadState

GetPreviousButtonState() public méthode

public GetPreviousButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
playerIndex PlayerIndex
Résultat GamePadButtonState

GetPreviousState() public méthode

public GetPreviousState ( PlayerIndex playerIndex ) : GamePadState
playerIndex PlayerIndex
Résultat Microsoft.Xna.Framework.Input.GamePadState

IsAnyButtonPressed() public méthode

public IsAnyButtonPressed ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex
Résultat bool

IsButtonHeld() public méthode

public IsButtonHeld ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
Résultat bool

IsButtonPressed() public méthode

public IsButtonPressed ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
Résultat bool

IsButtonReleased() public méthode

public IsButtonReleased ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
Résultat bool

IsConnected() public méthode

public IsConnected ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex
Résultat bool

Update() public méthode

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