Show / Hide Table of Contents

Struct JoystickCapabilities

Describes the JoystickCapabilities of a JoystickDevice.

Implements
IEquatable<JoystickCapabilities>
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
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

true if this instance is connected; otherwise, false.

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

true if the specified JoystickCapabilities is equal to the current JoystickCapabilities; otherwise, false.

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

true if the specified Object is equal to the current JoystickCapabilities; otherwise, false.

Overrides
ValueType.Equals(Object)

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
ValueType.GetHashCode()

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.

Overrides
ValueType.ToString()

Implements

System.IEquatable<T>
In This Article
Back to top Generated by DocFX