Dela via


GamePadTriggers.Left Property

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

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

Syntax

public float Left { get; }

Property Value

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

Remarks

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

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

Platforms

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