GamePadButtons Structure (Microsoft.Xna.Framework.Input)

A struct that represents the current button states for the controller.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The GamePadButtons type exposes the following members.

  Platforms Name Description
GamePadButtons  
Top
  Platforms Name Description
A Gets a value indicating if the button A is pressed. 
B Gets a value indicating if the button B is pressed. 
Back Gets a value indicating if the button Back is pressed. 
BigButton Gets a value indicating if the guide button is pressed. 
LeftShoulder Gets a value indicating if the left shoulder button is pressed. 
LeftStick Gets a value indicating if the left stick button is pressed. 
RightShoulder Gets a value indicating if the right shoulder button is pressed. 
RightStick Gets a value indicating if the right stick button is pressed. 
Start Gets a value indicating if the button Start is pressed. 
X Gets a value indicating if the button X is pressed. 
Y Gets a value indicating if the button Y is pressed. 
Top
  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 GamePadButtons object. (Overrides ValueType.GetHashCode().)
ToString Returns a System.String that represents the current GamePadButtons. (Overrides ValueType.ToString().)
Top
  Platforms Name Description
Equality Determines whether two specified instances of GamePadButtons are equal. 
Inequality Determines whether two specified instances of GamePadButtons are not equal. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web