Class JoystickDevice
Represents a joystick device and provides methods to query its status.
Inheritance
System.Object
JoystickDevice
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenTK.Input
Assembly: cs.temp.dll.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 |
---|---|
System.EventHandler<JoystickButtonEventArgs> |
ButtonUp
Occurs when a button of this JoystickDevice is released.
Declaration
public EventHandler<JoystickButtonEventArgs> ButtonUp
Field Value
Type | Description |
---|---|
System.EventHandler<JoystickButtonEventArgs> |
Move
Occurs when an axis of this JoystickDevice instance is moved.
Declaration
public EventHandler<JoystickMoveEventArgs> Move
Field Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |
DeviceType
Gets a value indicating the InputDeviceType of this InputDevice.
Declaration
public InputDeviceType DeviceType { get; }
Property Value
Type | Description |
---|---|
InputDeviceType |