Export (0) Print
Expand All

GamePadTriggers.Right Property

Identifies the position of the right trigger on the Xbox 360 Controller.

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

public float Right { get; }

Property Value

Position of the right trigger, as a value between 0.0 and 1.0.

Bb198773.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.

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

Community Additions

ADD
Show:
© 2015 Microsoft