GamePadButtons Constructor
Initializes a new instance of the GamePadButtons class, setting the specified buttons to pressed in.
Syntax
'Declaration
Public Sub New ( _
buttons As Buttons _
)
public GamePadButtons (
Buttons buttons
)
public:
GamePadButtons(
Buttons buttons
)
Parameters
- buttons
Type: Buttons
Buttons to initialize as pressed. Specify a single button or combine multiple buttons using a bitwise OR operation.
Remarks
Note that GamePadButtons only stores the state of digital buttons—such as A or right bumper— that are pressed in or not pressed in. Trigger or stick values specified in the buttons argument are ignored.
Games normally use GetState to get the true gamepad state. This constructor is used instead to simulate gamepad input for passing within the game's own input subsystem.
Requirements
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
GamePadButtons Structure
GamePadButtons Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Windows Phone