Struct GamePadCapabilities
Describes the capabilities of a GamePad
input device.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public struct GamePadCapabilities : IEquatable<GamePadCapabilities>
Properties
GamePadType
Gets a GamePadType value describing the type of a GamePad input device.
This value depends on the connected device and the drivers in use. If IsConnected
is false, then this value will be GamePadType.Unknown
.
Declaration
public readonly GamePadType GamePadType { get; }
Property Value
Type | Description |
---|---|
GamePadType | The |
HasAButton
Gets a Boolean value describing whether this GamePad
has
an A button.
Declaration
public readonly bool HasAButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasBackButton
Gets a Boolean value describing whether this GamePad
has
a back button.
Declaration
public readonly bool HasBackButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasBButton
Gets a Boolean value describing whether this GamePad
has
a B button.
Declaration
public readonly bool HasBButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasBigButton
Gets a Boolean value describing whether this GamePad
has
a big button. (also known as "guide" or "home" button).
Declaration
public readonly bool HasBigButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasDPadDownButton
Gets a Boolean value describing whether this GamePad
has
a down digital pad button.
Declaration
public readonly bool HasDPadDownButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasDPadLeftButton
Gets a Boolean value describing whether this GamePad
has
a left digital pad button.
Declaration
public readonly bool HasDPadLeftButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasDPadRightButton
Gets a Boolean value describing whether this GamePad
has
a right digital pad button.
Declaration
public readonly bool HasDPadRightButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasDPadUpButton
Gets a Boolean value describing whether this GamePad
has
an up digital pad button.
Declaration
public readonly bool HasDPadUpButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasLeftShoulderButton
Gets a Boolean value describing whether this GamePad
has
a left shoulder button.
Declaration
public readonly bool HasLeftShoulderButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasLeftStickButton
Gets a Boolean value describing whether this GamePad
has
a left stick button.
Declaration
public readonly bool HasLeftStickButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasLeftTrigger
Gets a Boolean value describing whether this GamePad
has
a left trigger.
Declaration
public readonly bool HasLeftTrigger { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasLeftVibrationMotor
Gets a Boolean value describing whether this GamePad
has
a low-frequency vibration motor.
Declaration
public readonly bool HasLeftVibrationMotor { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasLeftXThumbStick
Gets a Boolean value describing whether this GamePad
has
a left thumbstick with a x-axis.
Declaration
public readonly bool HasLeftXThumbStick { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasLeftYThumbStick
Gets a Boolean value describing whether this GamePad
has
a left thumbstick with a y-axis.
Declaration
public readonly bool HasLeftYThumbStick { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasRightShoulderButton
Gets a Boolean value describing whether this GamePad
has
a right shoulder button.
Declaration
public readonly bool HasRightShoulderButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasRightStickButton
Gets a Boolean value describing whether this GamePad
has
a right stick button.
Declaration
public readonly bool HasRightStickButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasRightTrigger
Gets a Boolean value describing whether this GamePad
has
a right trigger.
Declaration
public readonly bool HasRightTrigger { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasRightVibrationMotor
Gets a Boolean value describing whether this GamePad
has
a high-frequency vibration motor.
Declaration
public readonly bool HasRightVibrationMotor { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasRightXThumbStick
Gets a Boolean value describing whether this GamePad
has
a right thumbstick with a x-axis.
Declaration
public readonly bool HasRightXThumbStick { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasRightYThumbStick
Gets a Boolean value describing whether this GamePad
has
a right thumbstick with a y-axis.
Declaration
public readonly bool HasRightYThumbStick { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasStartButton
Gets a Boolean value describing whether this GamePad
has
a start button.
Declaration
public readonly bool HasStartButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasVoiceSupport
Gets a Boolean value describing whether this GamePad
has
a microphone input.
Declaration
public readonly bool HasVoiceSupport { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasXButton
Gets a Boolean value describing whether this GamePad
has
a X button.
Declaration
public readonly bool HasXButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasYButton
Gets a Boolean value describing whether this GamePad
has
a Y button.
Declaration
public readonly bool HasYButton { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsConnected
Gets a Boolean value describing whether this GamePad
is
currently connected.
Declaration
public readonly bool IsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsMapped
Gets a Boolean value describing whether a valid button configuration
exists for this GamePad
in the GamePad configuration database.
Declaration
public readonly bool IsMapped { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Equals(GamePadCapabilities)
Determines whether the specified GamePadCapabilities is equal to the current GamePadCapabilities.
Declaration
public bool Equals(GamePadCapabilities other)
Parameters
Type | Name | Description |
---|---|---|
GamePadCapabilities | other | The GamePadCapabilities to compare with the current GamePadCapabilities. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Determines whether the specified Object is equal to the current GamePadCapabilities.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare with the current GamePadCapabilities. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a GamePadCapabilities object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table. |
Overrides
ToString()
Returns a String that represents the current GamePadCapabilities.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents the current GamePadCapabilities. |
Overrides
Operators
Equality(GamePadCapabilities, GamePadCapabilities)
Declaration
public static bool operator ==(GamePadCapabilities left, GamePadCapabilities right)
Parameters
Type | Name | Description |
---|---|---|
GamePadCapabilities | left | A GamePadCapabilities structure to test for equality. |
GamePadCapabilities | right | A GamePadCapabilities structure to test for equality. |
Returns
Type | Description |
---|---|
Boolean |
Inequality(GamePadCapabilities, GamePadCapabilities)
Declaration
public static bool operator !=(GamePadCapabilities left, GamePadCapabilities right)
Parameters
Type | Name | Description |
---|---|---|
GamePadCapabilities | left | A GamePadCapabilities structure to test for inequality. |
GamePadCapabilities | right | A GamePadCapabilities structure to test for inequality. |
Returns
Type | Description |
---|---|
Boolean |