Sirikata
|
Base class for all pointer motion events. More...
#include <InputEvents.hpp>
Public Member Functions | |
MouseEvent (const PointerDevicePtr &dev, float x, float y, int cursorType) | |
PointerDevicePtr | getDevice () const |
Public Attributes | |
float | mX |
X coordinate, from -1 (left) to 1 (right), same as AxisEvent. | |
float | mY |
Y coordinate, from -1 (bottom) to 1 (top), same as AxisEvent. | |
int | mCursorType |
Platform-dependent value as defined by SDL. |
Base class for all pointer motion events.
Sirikata::Input::MouseEvent::MouseEvent | ( | const PointerDevicePtr & | dev, |
float | x, | ||
float | y, | ||
int | cursorType | ||
) | [inline] |
PointerDevicePtr Sirikata::Input::MouseEvent::getDevice | ( | ) | const [inline] |
Reimplemented from Sirikata::Input::InputEvent.
References Sirikata::Input::InputEvent::getDevice().
Platform-dependent value as defined by SDL.
X coordinate, from -1 (left) to 1 (right), same as AxisEvent.
Y coordinate, from -1 (bottom) to 1 (top), same as AxisEvent.