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
Left trigger value. This value is clamped between 0.0 and 1.0.
rightTrigger
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 to instead simulate gamepad input for passing within the game's own input subsystem.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2015 Microsoft