GamePadTriggers Structure (Microsoft.Xna.Framework.Input)

A struct that countains information on the left and the right trigger buttons.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = -1, Size = -1)]
public struct GamePadTriggers

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The GamePadTriggers type exposes the following members.

  Platforms Name Description
GamePadTriggers Initializes a new instance of the GamePadTriggers struct. 
  Platforms Name Description
Left Gets the position of the left trigger. 
Right Gets the position of the right trigger. 
  Platforms Name Description
Equals Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals().)
GetHashCode Serves as a hash function for a GamePadTriggers object. (Overrides ValueType.GetHashCode().)
ToString Returns a System.String that represents the current GamePadTriggers. (Overrides ValueType.ToString().)
  Platforms Name Description
Equality Determines whether two specified instances of GamePadTriggers are equal. 
Inequality Determines whether two specified instances of GamePadTriggers are not equal. 
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop