GamePadCapabilities¶
-
struct
GamePadCapabilities
: System.ValueType A stuct that represents the controller capabilities.
-
readonly bool
IsConnected
Gets a value indicating if the controller is connected.
Value: true if it is connected; otherwise, false.
-
readonly string
DisplayName
Gets the gamepad display name.
This property is not available in XNA.
Value: String representing the display name of the gamepad.
-
readonly string
Identifier
Gets the unique identifier of the gamepad.
This property is not available in XNA.
Value: String representing the unique identifier of the gamepad.
-
readonly bool
HasAButton
Gets a value indicating whether the controller has the button A.
Value: true if it has the button A; otherwise, false.
-
readonly bool
HasBackButton
Gets a value indicating whether the controller has the button Back.
Value: true if it has the button Back; otherwise, false.
-
readonly bool
HasBButton
Gets a value indicating whether the controller has the button B.
Value: true if it has the button B; otherwise, false.
-
readonly bool
HasDPadDownButton
Gets a value indicating whether the controller has the directional pad down button.
Value: true if it has the directional pad down button; otherwise, false.
-
readonly bool
HasDPadLeftButton
Gets a value indicating whether the controller has the directional pad left button.
Value: true if it has the directional pad left button; otherwise, false.
-
readonly bool
HasDPadRightButton
Gets a value indicating whether the controller has the directional pad right button.
Value: true if it has the directional pad right button; otherwise, false.
-
readonly bool
HasDPadUpButton
Gets a value indicating whether the controller has the directional pad up button.
Value: true if it has the directional pad up button; otherwise, false.
-
readonly bool
HasLeftShoulderButton
Gets a value indicating whether the controller has the left shoulder button.
Value: true if it has the left shoulder button; otherwise, false.
-
readonly bool
HasLeftStickButton
Gets a value indicating whether the controller has the left stick button.
Value: true if it has the left stick button; otherwise, false.
-
readonly bool
HasRightShoulderButton
Gets a value indicating whether the controller has the right shoulder button.
Value: true if it has the right shoulder button; otherwise, false.
-
readonly bool
HasRightStickButton
Gets a value indicating whether the controller has the right stick button.
Value: true if it has the right stick button; otherwise, false.
-
readonly bool
HasStartButton
Gets a value indicating whether the controller has the button Start.
Value: true if it has the button Start; otherwise, false.
-
readonly bool
HasXButton
Gets a value indicating whether the controller has the button X.
Value: true if it has the button X; otherwise, false.
-
readonly bool
HasYButton
Gets a value indicating whether the controller has the button Y.
Value: true if it has the button Y; otherwise, false.
-
readonly bool
HasBigButton
Gets a value indicating whether the controller has the guide button.
Value: true if it has the guide button; otherwise, false.
-
readonly bool
HasLeftXThumbStick
Gets a value indicating whether the controller has X axis for the left stick (thumbstick) button.
Value: true if it has X axis for the left stick (thumbstick) button; otherwise, false.
-
readonly bool
HasLeftYThumbStick
Gets a value indicating whether the controller has Y axis for the left stick (thumbstick) button.
Value: true if it has Y axis for the left stick (thumbstick) button; otherwise, false.
-
readonly bool
HasRightXThumbStick
Gets a value indicating whether the controller has X axis for the right stick (thumbstick) button.
Value: true if it has X axis for the right stick (thumbstick) button; otherwise, false.
-
readonly bool
HasRightYThumbStick
Gets a value indicating whether the controller has Y axis for the right stick (thumbstick) button.
Value: true if it has Y axis for the right stick (thumbstick) button; otherwise, false.
-
readonly bool
HasLeftTrigger
Gets a value indicating whether the controller has the left trigger button.
Value: true if it has the left trigger button; otherwise, false.
-
readonly bool
HasRightTrigger
Gets a value indicating whether the controller has the right trigger button.
Value: true if it has the right trigger button; otherwise, false.
-
readonly bool
HasLeftVibrationMotor
Gets a value indicating whether the controller has the left vibration motor.
Value: true if it has the left vibration motor; otherwise, false.
-
readonly bool
HasRightVibrationMotor
Gets a value indicating whether the controller has the right vibration motor.
Value: true if it has the right vibration motor; otherwise, false.
-
readonly bool
HasVoiceSupport
Gets a value indicating whether the controller has a microphone.
Value: true if it has a microphone; otherwise, false.
-
readonly GamePadType
GamePadType
Gets the type of the controller.
Value: A P:Microsoft.Xna.Framework.Input.GamePadCapabilities.GamePadType representing the controller type..
-
void
set_IsConnected
(bool value) Parameters: - value (bool) –
-
void
set_DisplayName
(string value) Parameters: - value (string) –
-
void
set_Identifier
(string value) Parameters: - value (string) –
-
void
set_HasAButton
(bool value) Parameters: - value (bool) –
-
void
set_HasBackButton
(bool value) Parameters: - value (bool) –
-
void
set_HasBButton
(bool value) Parameters: - value (bool) –
-
void
set_HasDPadDownButton
(bool value) Parameters: - value (bool) –
-
void
set_HasDPadLeftButton
(bool value) Parameters: - value (bool) –
-
void
set_HasDPadRightButton
(bool value) Parameters: - value (bool) –
-
void
set_HasDPadUpButton
(bool value) Parameters: - value (bool) –
-
void
set_HasLeftShoulderButton
(bool value) Parameters: - value (bool) –
-
void
set_HasLeftStickButton
(bool value) Parameters: - value (bool) –
-
void
set_HasRightShoulderButton
(bool value) Parameters: - value (bool) –
-
void
set_HasRightStickButton
(bool value) Parameters: - value (bool) –
-
void
set_HasStartButton
(bool value) Parameters: - value (bool) –
-
void
set_HasXButton
(bool value) Parameters: - value (bool) –
-
void
set_HasYButton
(bool value) Parameters: - value (bool) –
-
void
set_HasBigButton
(bool value) Parameters: - value (bool) –
-
void
set_HasLeftXThumbStick
(bool value) Parameters: - value (bool) –
-
void
set_HasLeftYThumbStick
(bool value) Parameters: - value (bool) –
-
void
set_HasRightXThumbStick
(bool value) Parameters: - value (bool) –
-
void
set_HasRightYThumbStick
(bool value) Parameters: - value (bool) –
-
void
set_HasLeftTrigger
(bool value) Parameters: - value (bool) –
-
void
set_HasRightTrigger
(bool value) Parameters: - value (bool) –
-
void
set_HasLeftVibrationMotor
(bool value) Parameters: - value (bool) –
-
void
set_HasRightVibrationMotor
(bool value) Parameters: - value (bool) –
-
void
set_HasVoiceSupport
(bool value) Parameters: - value (bool) –
-
void
set_GamePadType
(GamePadType value) Parameters: - value (Microsoft.Xna.Framework.Input.GamePadType) –
-
bool
op_Equality
(GamePadCapabilities left, GamePadCapabilities right) Determines whether a specified instance of T:Microsoft.Xna.Framework.Input.GamePadCapabilities is equal to another specified T:Microsoft.Xna.Framework.Input.GamePadCapabilities.
Parameters: - left (Microsoft.Xna.Framework.Input.GamePadCapabilities) – The first T:Microsoft.Xna.Framework.Input.GamePadCapabilities to compare.
- right (Microsoft.Xna.Framework.Input.GamePadCapabilities) – The second T:Microsoft.Xna.Framework.Input.GamePadCapabilities to compare.
Returns: true if left and right are equal; otherwise, false.
-
bool
op_Inequality
(GamePadCapabilities left, GamePadCapabilities right) Determines whether a specified instance of T:Microsoft.Xna.Framework.Input.GamePadCapabilities is not equal to another specified T:Microsoft.Xna.Framework.Input.GamePadCapabilities.
Parameters: - left (Microsoft.Xna.Framework.Input.GamePadCapabilities) – The first T:Microsoft.Xna.Framework.Input.GamePadCapabilities to compare.
- right (Microsoft.Xna.Framework.Input.GamePadCapabilities) – The second T:Microsoft.Xna.Framework.Input.GamePadCapabilities to compare.
Returns: true if left and right are not equal; otherwise, false.
-
bool
Equals
(System.Object obj) Determines whether the specified T:System.Object is equal to the current T:Microsoft.Xna.Framework.Input.GamePadCapabilities.
Parameters: - obj (System.Object) – The T:System.Object to compare with the current T:Microsoft.Xna.Framework.Input.GamePadCapabilities.
Returns: - true if the specified T:System.Object is equal to the current
T:Microsoft.Xna.Framework.Input.GamePadCapabilities; otherwise, false.
-
int
GetHashCode
() Serves as a hash function for a T:Microsoft.Xna.Framework.Input.GamePadCapabilities object.
Returns: - A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
hash table.
-
string
ToString
() Returns a T:System.String that represents the current T:Microsoft.Xna.Framework.Input.GamePadCapabilities.
Returns: A T:System.String that represents the current T:Microsoft.Xna.Framework.Input.GamePadCapabilities.
-
readonly bool