Export (0) Print
Expand All

GamePadTriggers Structure

Structure that defines the position of the left and right triggers on an Xbox 360 controller.

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

public struct GamePadTriggers

Bb197019.bp(en-us,XNAGameStudio.31).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.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show:
© 2014 Microsoft