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

List of all members.

Public Member Functions

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

Properties

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

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.

Definition at line 225 of file JoystickDevice.cs.


Constructor & Destructor Documentation

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

Initializes a new instance of the JoystickMoveEventArgs class.

Parameters:
axis The index of the joystick axis that was moved.
value The absolute value of the joystick axis.
delta The relative change in value of the joystick axis.

Definition at line 243 of file JoystickDevice.cs.

00244         {
00245             this.axis = axis;
00246             this.value = value;
00247             this.delta = delta;
00248         }


Property Documentation

JoystickAxis OpenTK.Input.JoystickMoveEventArgs.Axis [get, set]

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

Definition at line 257 of file JoystickDevice.cs.

float OpenTK.Input.JoystickMoveEventArgs.Delta [get, set]

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

Definition at line 267 of file JoystickDevice.cs.

float OpenTK.Input.JoystickMoveEventArgs.Value [get, set]

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

Definition at line 262 of file JoystickDevice.cs.

 All Classes Functions Variables Enumerations Properties Events

Generated on Tue Mar 9 15:06:30 2010 for The Open Toolkit library by  doxygen 1.6.1