Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GamePadTriggers Constructor

Initializes a new instance of the GamePadTriggers class.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public GamePadTriggers (
         float leftTrigger,
         float rightTrigger
)

Parameters

leftTrigger
Type: Single
Left trigger value. This value is clamped between 0.0 and 1.0.
rightTrigger
Type: Single
Right trigger value. This value is clamped between 0.0 and 1.0.

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.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2015 Microsoft