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

Provides access to Joystick devices. Joystick devices provide a varying number of axes and buttons. Use GetCapabilities to retrieve the number of supported axes and buttons on a given device. Use GetState to retrieve the current state of a given device. More...

Static Public Member Functions

static JoystickCapabilities GetCapabilities (int index)
 Retrieves the JoystickCapabilities of the device connected at the specified index. More...
 
static JoystickState GetState (int index)
 Retrieves the JoystickState of the device connected at the specified index. More...
 

Detailed Description

Provides access to Joystick devices. Joystick devices provide a varying number of axes and buttons. Use GetCapabilities to retrieve the number of supported axes and buttons on a given device. Use GetState to retrieve the current state of a given device.

See Also
GamePad

Member Function Documentation

static JoystickCapabilities OpenTK.Input.Joystick.GetCapabilities ( int  index)
static

Retrieves the JoystickCapabilities of the device connected at the specified index.

Returns
A JoystickCapabilities structure describing the capabilities of the device at the specified index. If no device is connected at the specified index, the IsConnected property of the returned structure will be false.
Parameters
indexThe zero-based index of the device to poll.
static JoystickState OpenTK.Input.Joystick.GetState ( int  index)
static

Retrieves the JoystickState of the device connected at the specified index.

Returns
A JoystickState structure describing the current state of the device at the specified index. If no device is connected at this index, the IsConnected property of the returned structure will be false.
Parameters
indexThe zero-based index of the device to poll.