The Open Toolkit library  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
OpenTK.Input.JoystickButtonCollection Class Reference

Defines a collection of JoystickButtons. More...

Properties

bool this[int index] [get, set]
 Gets a System.Boolean indicating whether the JoystickButton with the specified index is pressed. More...
 
bool this[JoystickButton button] [get, set]
 Gets a System.Boolean indicating whether the specified JoystickButton is pressed. More...
 
int Count [get]
 Gets a System.Int32 indicating the available amount of JoystickButtons. More...
 

Detailed Description

Defines a collection of JoystickButtons.

Property Documentation

int OpenTK.Input.JoystickButtonCollection.Count
get

Gets a System.Int32 indicating the available amount of JoystickButtons.

bool OpenTK.Input.JoystickButtonCollection.this[int index]
getset

Gets a System.Boolean indicating whether the JoystickButton with the specified index is pressed.

Parameters
indexThe index of the JoystickButton to check.
Returns
True if the JoystickButton is pressed; false otherwise.
bool OpenTK.Input.JoystickButtonCollection.this[JoystickButton button]
getset

Gets a System.Boolean indicating whether the specified JoystickButton is pressed.

Parameters
buttonThe JoystickButton to check.
Returns
True if the JoystickButton is pressed; false otherwise.