Share via


GamePadState.Triggers Property

Returns a structure that identifies the position of triggers on the Xbox 360 controller.

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

Syntax

public GamePadTriggers Triggers { get; }

Property Value

Structure that identifies the position of the triggers.

Remarks

Bb199549.bp(en-us,XNAGameStudio.41).gifBest Practice
  • If your game allows the player to control acceleration using the Xbox 360 controller, you may check GameDefaults.AccelerateWithButtons to determine if the player prefers using the gamepad buttons or triggers to control acceleration.

  • If your game allows the player to control braking using the Xbox 360 controller, you may check GameDefaults.BrakeWithButtons to determine if the player prefers using the gamepad buttons or triggers to control braking.

See Also

Reference

GamePadState Structure
GamePadState Members
Microsoft.Xna.Framework.Input Namespace

Platforms

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