Class JoystickDevice
Represents a joystick device and provides methods to query its status.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public abstract class JoystickDevice : IInputDevice
Fields
ButtonDown
Occurs when a button of this JoystickDevice instance is pressed.
Declaration
public EventHandler<JoystickButtonEventArgs> ButtonDown
Field Value
Type | Description |
---|---|
EventHandler<JoystickButtonEventArgs> |
ButtonUp
Occurs when a button of this JoystickDevice is released.
Declaration
public EventHandler<JoystickButtonEventArgs> ButtonUp
Field Value
Type | Description |
---|---|
EventHandler<JoystickButtonEventArgs> |
Move
Occurs when an axis of this JoystickDevice instance is moved.
Declaration
public EventHandler<JoystickMoveEventArgs> Move
Field Value
Type | Description |
---|---|
EventHandler<JoystickMoveEventArgs> |
Properties
Axis
Gets a JoystickAxisCollection containing the state of each axis on this instance. Values are normalized in the [-1, 1] range.
Declaration
public JoystickAxisCollection Axis { get; }
Property Value
Type | Description |
---|---|
JoystickAxisCollection |
Button
Gets JoystickButtonCollection containing the state of each button on this instance. True indicates that the button is pressed.
Declaration
public JoystickButtonCollection Button { get; }
Property Value
Type | Description |
---|---|
JoystickButtonCollection |
Description
Gets a System.String containing a unique description for this instance.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
DeviceType
Gets a value indicating the InputDeviceType of this InputDevice.
Declaration
public InputDeviceType DeviceType { get; }
Property Value
Type | Description |
---|---|
InputDeviceType |