Sirikata
Public Member Functions | Public Attributes
Sirikata::Input::AxisEvent Class Reference

Upon changing the value of a mouse/joystick axis. More...

#include <InputEvents.hpp>

Inheritance diagram for Sirikata::Input::AxisEvent:
Collaboration diagram for Sirikata::Input::AxisEvent:

List of all members.

Public Member Functions

 AxisEvent (const InputDevicePtr &dev, unsigned int axis, AxisValue value)

Public Attributes

AxisIndex mAxis
AxisValue mValue

Detailed Description

Upon changing the value of a mouse/joystick axis.

NOTE: This does not take into account relative (per-frame) versus absolute axes.

For example, the mouse wheel is fired only once upon scrolling a few lines. On the other hand, a joystick is constantly fired whenever the value changes.


Constructor & Destructor Documentation

Sirikata::Input::AxisEvent::AxisEvent ( const InputDevicePtr dev,
unsigned int  axis,
AxisValue  value 
) [inline]

Member Data Documentation


The documentation for this class was generated from the following file: