The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
OpenTK.Input.JoystickMoveEventArgs Class Reference

Provides data for the JoystickDevice.Move event. This class is cached for performance reasons - avoid storing references outside the scope of the event. More...

Inheritance diagram for OpenTK.Input.JoystickMoveEventArgs:
OpenTK.Input.JoystickEventArgs

Public Member Functions

 JoystickMoveEventArgs (JoystickAxis axis, float value, float delta)
 Initializes a new instance of the JoystickMoveEventArgs class. More...
 

Properties

JoystickAxis Axis [get, set]
 Gets a System.Int32 representing the index of the axis that was moved. More...
 
float Value [get, set]
 Gets a System.Single representing the absolute position of the axis. More...
 
float Delta [get, set]
 Gets a System.Single representing the relative change in the position of the axis. More...
 

Detailed Description

Provides data for the JoystickDevice.Move event. This class is cached for performance reasons - avoid storing references outside the scope of the event.

Constructor & Destructor Documentation

OpenTK.Input.JoystickMoveEventArgs.JoystickMoveEventArgs ( JoystickAxis  axis,
float  value,
float  delta 
)

Initializes a new instance of the JoystickMoveEventArgs class.

Parameters
axisThe index of the joystick axis that was moved.
valueThe absolute value of the joystick axis.
deltaThe relative change in value of the joystick axis.

Property Documentation

JoystickAxis OpenTK.Input.JoystickMoveEventArgs.Axis
getset

Gets a System.Int32 representing the index of the axis that was moved.

float OpenTK.Input.JoystickMoveEventArgs.Delta
getset

Gets a System.Single representing the relative change in the position of the axis.

float OpenTK.Input.JoystickMoveEventArgs.Value
getset

Gets a System.Single representing the absolute position of the axis.