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

Represents a joystick device and provides methods to query its status. More...

Inheritance diagram for OpenTK.Input.JoystickDevice:
OpenTK.Input.IInputDevice

Public Attributes

EventHandler
< JoystickMoveEventArgs
Move
 Occurs when an axis of this JoystickDevice instance is moved. More...
 
EventHandler
< JoystickButtonEventArgs
ButtonDown
 Occurs when a button of this JoystickDevice instance is pressed. More...
 
EventHandler
< JoystickButtonEventArgs
ButtonUp
 Occurs when a button of this JoystickDevice is released. More...
 

Properties

JoystickAxisCollection Axis [get]
 Gets a JoystickAxisCollection containing the state of each axis on this instance. Values are normalized in the [-1, 1] range. More...
 
JoystickButtonCollection Button [get]
 Gets JoystickButtonCollection containing the state of each button on this instance. True indicates that the button is pressed. More...
 
string Description [get, set]
 Gets a System.String containing a unique description for this instance. More...
 
InputDeviceType DeviceType [get]
 Gets a value indicating the InputDeviceType of this InputDevice. More...
 
- Properties inherited from OpenTK.Input.IInputDevice
string Description [get]
 Gets a System.String with a unique description of this IInputDevice instance. More...
 
InputDeviceType DeviceType [get]
 Gets an OpenTK.Input.InputDeviceType value, representing the device type of this IInputDevice instance. More...
 

Detailed Description

Represents a joystick device and provides methods to query its status.

Member Data Documentation

EventHandler<JoystickButtonEventArgs> OpenTK.Input.JoystickDevice.ButtonDown
Initial value:
=
delegate(object sender, JoystickButtonEventArgs e) { }

Occurs when a button of this JoystickDevice instance is pressed.

EventHandler<JoystickButtonEventArgs> OpenTK.Input.JoystickDevice.ButtonUp
Initial value:
=
delegate(object sender, JoystickButtonEventArgs e) { }

Occurs when a button of this JoystickDevice is released.

EventHandler<JoystickMoveEventArgs> OpenTK.Input.JoystickDevice.Move
Initial value:
=
delegate(object sender, JoystickMoveEventArgs e) { }

Occurs when an axis of this JoystickDevice instance is moved.

Property Documentation

JoystickAxisCollection OpenTK.Input.JoystickDevice.Axis
get

Gets a JoystickAxisCollection containing the state of each axis on this instance. Values are normalized in the [-1, 1] range.

JoystickButtonCollection OpenTK.Input.JoystickDevice.Button
get

Gets JoystickButtonCollection containing the state of each button on this instance. True indicates that the button is pressed.

string OpenTK.Input.JoystickDevice.Description
getset

Gets a System.String containing a unique description for this instance.

InputDeviceType OpenTK.Input.JoystickDevice.DeviceType
get

Gets a value indicating the InputDeviceType of this InputDevice.