Class JoystickButtonCollection
Defines a collection of JoystickButtons.
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public sealed class JoystickButtonCollection
Properties
Count
Gets a System.Int32 indicating the available amount of JoystickButtons.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Item[Int32]
Gets a System.Boolean indicating whether the JoystickButton with the specified index is pressed.
Declaration
public bool this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The index of the JoystickButton to check. |
Property Value
| Type | Description |
|---|---|
| Boolean | True if the JoystickButton is pressed; false otherwise. |