Class JoystickMoveEventArgs
Provides data for the Move event. This class is cached for performance reasons - avoid storing references outside the scope of the event.
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public class JoystickMoveEventArgs : JoystickEventArgs
Constructors
JoystickMoveEventArgs(Int32, Single, Single)
Initializes a new instance of the JoystickMoveEventArgs class.
Declaration
public JoystickMoveEventArgs(int axis, float value, float delta)
Parameters
Type | Name | Description |
---|---|---|
Int32 | axis | The index of the joystick axis that was moved. |
Single | value | The absolute value of the joystick axis. |
Single | delta | The relative change in value of the joystick axis. |
Properties
Axis
Gets a System.Int32 representing the index of the axis that was moved.
Declaration
public int Axis { get; }
Property Value
Type | Description |
---|---|
Int32 |
Delta
Gets a System.Single representing the relative change in the position of the axis.
Declaration
public float Delta { get; }
Property Value
Type | Description |
---|---|
Single |
Value
Gets a System.Single representing the absolute position of the axis.
Declaration
public float Value { get; }
Property Value
Type | Description |
---|---|
Single |