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