Struct JoystickCapabilities
Describes the JoystickCapabilities
of a JoystickDevice.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public struct JoystickCapabilities : IEquatable<JoystickCapabilities>
Properties
AxisCount
Gets the number of axes supported by this JoystickDevice.
Declaration
public readonly int AxisCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
ButtonCount
Gets the number of buttons supported by this JoystickDevice.
Declaration
public readonly int ButtonCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
HatCount
Gets the number of hats supported by this JoystickDevice.
Declaration
public readonly int HatCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
IsConnected
Gets a value indicating whether this JoystickDevice is connected.
Declaration
public bool IsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
Equals(JoystickCapabilities)
Determines whether the specified JoystickCapabilities is equal to the current JoystickCapabilities.
Declaration
public bool Equals(JoystickCapabilities other)
Parameters
Type | Name | Description |
---|---|---|
JoystickCapabilities | other | The JoystickCapabilities to compare with the current JoystickCapabilities. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Determines whether the specified Object is equal to the current JoystickCapabilities.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare with the current JoystickCapabilities. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a JoystickCapabilities 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 JoystickCapabilities.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents the current JoystickCapabilities. |