The Open Toolkit library
1.0
|
Represents a joystick device and provides methods to query its status. More...
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... | |
Represents a joystick device and provides methods to query its status.
EventHandler<JoystickButtonEventArgs> OpenTK.Input.JoystickDevice.ButtonDown |
Occurs when a button of this JoystickDevice instance is pressed.
EventHandler<JoystickButtonEventArgs> OpenTK.Input.JoystickDevice.ButtonUp |
Occurs when a button of this JoystickDevice is released.
EventHandler<JoystickMoveEventArgs> OpenTK.Input.JoystickDevice.Move |
Occurs when an axis of this JoystickDevice instance is moved.
|
get |
Gets a JoystickAxisCollection containing the state of each axis on this instance. Values are normalized in the [-1, 1] range.
|
get |
Gets JoystickButtonCollection containing the state of each button on this instance. True indicates that the button is pressed.
|
getset |
Gets a System.String containing a unique description for this instance.
|
get |
Gets a value indicating the InputDeviceType of this InputDevice.