GamePadCapabilities Structure (Microsoft.Xna.Framework.Input)

A stuct that represents the controller capabilities.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The GamePadCapabilities type exposes the following members.

  Platforms Name Description
DisplayName Gets the gamepad display name. This property is not available in XNA. 
GamePadType Gets the type of the controller. 
HasAButton Gets a value indicating whether the controller has the button A. 
HasBButton Gets a value indicating whether the controller has the button B. 
HasBackButton Gets a value indicating whether the controller has the button Back. 
HasBigButton Gets a value indicating whether the controller has the guide button. 
HasDPadDownButton Gets a value indicating whether the controller has the directional pad down button. 
HasDPadLeftButton Gets a value indicating whether the controller has the directional pad left button. 
HasDPadRightButton Gets a value indicating whether the controller has the directional pad right button. 
HasDPadUpButton Gets a value indicating whether the controller has the directional pad up button. 
HasLeftShoulderButton Gets a value indicating whether the controller has the left shoulder button. 
HasLeftStickButton Gets a value indicating whether the controller has the left stick button. 
HasLeftTrigger Gets a value indicating whether the controller has the left trigger button. 
HasLeftVibrationMotor Gets a value indicating whether the controller has the left vibration motor. 
HasLeftXThumbStick Gets a value indicating whether the controller has X axis for the left stick (thumbstick) button. 
HasLeftYThumbStick Gets a value indicating whether the controller has Y axis for the left stick (thumbstick) button. 
HasRightShoulderButton Gets a value indicating whether the controller has the right shoulder button. 
HasRightStickButton Gets a value indicating whether the controller has the right stick button. 
HasRightTrigger Gets a value indicating whether the controller has the right trigger button. 
HasRightVibrationMotor Gets a value indicating whether the controller has the right vibration motor. 
HasRightXThumbStick Gets a value indicating whether the controller has X axis for the right stick (thumbstick) button. 
HasRightYThumbStick Gets a value indicating whether the controller has Y axis for the right stick (thumbstick) button. 
HasStartButton Gets a value indicating whether the controller has the button Start. 
HasVoiceSupport Gets a value indicating whether the controller has a microphone. 
HasXButton Gets a value indicating whether the controller has the button X. 
HasYButton Gets a value indicating whether the controller has the button Y. 
Identifier Gets the unique identifier of the gamepad. This property is not available in XNA. 
IsConnected Gets a value indicating if the controller is connected. 
Top
  Platforms Name Description
Equals Determines whether the specified System.Object is equal to the current GamePadCapabilities. (Overrides ValueType.Equals().)
GetHashCode Serves as a hash function for a GamePadCapabilities object. (Overrides ValueType.GetHashCode().)
ToString Returns a System.String that represents the current GamePadCapabilities. (Overrides ValueType.ToString().)
Top
  Platforms Name Description
Equality Determines whether a specified instance of GamePadCapabilities is equal to another specified GamePadCapabilities
Inequality Determines whether a specified instance of GamePadCapabilities is not equal to another specified GamePadCapabilities
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web