C# Class CarpMuffin.Input.GamePadButtonState

Determines the state of a gamepads buttons
Show file Open project: BetaToast/CarpMuffin Class Usage Examples

Public Methods

Method Description
GamePadButtonState ( ) : System
IsAnyButtonPressed ( ) : bool
IsButtonPressed ( Buttons button ) : bool
IsButtonReleased ( Buttons button ) : bool
Reset ( ) : void
Update ( GamePadState state ) : void

Method Details

GamePadButtonState() public method

public GamePadButtonState ( ) : System
return System

IsAnyButtonPressed() public method

public IsAnyButtonPressed ( ) : bool
return bool

IsButtonPressed() public method

public IsButtonPressed ( Buttons button ) : bool
button Buttons
return bool

IsButtonReleased() public method

public IsButtonReleased ( Buttons button ) : bool
button Buttons
return bool

Reset() public method

public Reset ( ) : void
return void

Update() public method

public Update ( GamePadState state ) : void
state Microsoft.Xna.Framework.Input.GamePadState
return void