C# Class CarpMuffin.Input.GamePadManager

Manages Gamepads
Inheritance: IUpdatable
Exibir arquivo Open project: BetaToast/CarpMuffin Class Usage Examples

Public Methods

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

public GamePadManager ( ) : CarpMuffin.Graphics
return CarpMuffin.Graphics

GetCurrentButtonState() public method

public GetCurrentButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
playerIndex PlayerIndex
return GamePadButtonState

GetCurrentState() public method

public GetCurrentState ( PlayerIndex playerIndex ) : GamePadState
playerIndex PlayerIndex
return Microsoft.Xna.Framework.Input.GamePadState

GetPreviousButtonState() public method

public GetPreviousButtonState ( PlayerIndex playerIndex ) : GamePadButtonState
playerIndex PlayerIndex
return GamePadButtonState

GetPreviousState() public method

public GetPreviousState ( PlayerIndex playerIndex ) : GamePadState
playerIndex PlayerIndex
return Microsoft.Xna.Framework.Input.GamePadState

IsAnyButtonPressed() public method

public IsAnyButtonPressed ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex
return bool

IsButtonHeld() public method

public IsButtonHeld ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
return bool

IsButtonPressed() public method

public IsButtonPressed ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
return bool

IsButtonReleased() public method

public IsButtonReleased ( PlayerIndex playerIndex, Buttons button ) : bool
playerIndex PlayerIndex
button Buttons
return bool

IsConnected() public method

public IsConnected ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex
return bool

Update() public method

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