The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Properties | List of all members
OpenTK.Input.JoystickCapabilities Struct Reference

Describes the JoystickCapabilities of a JoystickDevice. More...

Inherits IEquatable< JoystickCapabilities >.

Public Member Functions

override string ToString ()
 Returns a System.String that represents the current OpenTK.Input.JoystickCapabilities. More...
 
override int GetHashCode ()
 Serves as a hash function for a OpenTK.Input.JoystickCapabilities object. More...
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current OpenTK.Input.JoystickCapabilities. More...
 
bool Equals (JoystickCapabilities other)
 Determines whether the specified OpenTK.Input.JoystickCapabilities is equal to the current OpenTK.Input.JoystickCapabilities. More...
 

Public Attributes

byte axis_count
 
byte button_count
 
byte hat_count
 
bool is_connected
 

Properties

int AxisCount [get]
 Gets the number of axes supported by this JoystickDevice. More...
 
int ButtonCount [get]
 Gets the number of buttons supported by this JoystickDevice. More...
 
int HatCount [get]
 Gets the number of hats supported by this JoystickDevice. More...
 
bool IsConnected [get]
 Gets a value indicating whether this JoystickDevice is connected. More...
 

Detailed Description

Describes the JoystickCapabilities of a JoystickDevice.

Member Function Documentation

override bool OpenTK.Input.JoystickCapabilities.Equals ( object  obj)

Determines whether the specified System.Object is equal to the current OpenTK.Input.JoystickCapabilities.

Parameters
objThe System.Object to compare with the current OpenTK.Input.JoystickCapabilities.
Returns
true if the specified System.Object is equal to the current OpenTK.Input.JoystickCapabilities; otherwise, false.
bool OpenTK.Input.JoystickCapabilities.Equals ( JoystickCapabilities  other)

Determines whether the specified OpenTK.Input.JoystickCapabilities is equal to the current OpenTK.Input.JoystickCapabilities.

Parameters
otherThe OpenTK.Input.JoystickCapabilities to compare with the current OpenTK.Input.JoystickCapabilities.
Returns
true if the specified OpenTK.Input.JoystickCapabilities is equal to the current OpenTK.Input.JoystickCapabilities; otherwise, false.
override int OpenTK.Input.JoystickCapabilities.GetHashCode ( )

Serves as a hash function for a OpenTK.Input.JoystickCapabilities object.

Returns
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.
override string OpenTK.Input.JoystickCapabilities.ToString ( )

Returns a System.String that represents the current OpenTK.Input.JoystickCapabilities.

Returns
A System.String that represents the current OpenTK.Input.JoystickCapabilities.

Property Documentation

int OpenTK.Input.JoystickCapabilities.AxisCount
get

Gets the number of axes supported by this JoystickDevice.

int OpenTK.Input.JoystickCapabilities.ButtonCount
get

Gets the number of buttons supported by this JoystickDevice.

int OpenTK.Input.JoystickCapabilities.HatCount
get

Gets the number of hats supported by this JoystickDevice.

bool OpenTK.Input.JoystickCapabilities.IsConnected
get

Gets a value indicating whether this JoystickDevice is connected.

true if this instance is connected; otherwise, false.