Show / Hide Table of Contents

Class JoystickDevice

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

Inheritance
Object
JoystickDevice
Implements
IInputDevice
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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

Implements

IInputDevice
In This Article
Back to top Generated by DocFX