Sirikata
|
Base class for events involving a mouse click. More...
#include <InputEvents.hpp>
Public Member Functions | |
float | deltaX () const |
mX - mXStart: Returns a value between -1 and 1 | |
float | deltaY () const |
mY - mYStart: Returns a value between -1 and 1 | |
float | deltaLastY () const |
float | deltaLastX () const |
MouseDownEvent (const PointerDevicePtr &dev, float xstart, float ystart, float xend, float yend, float lastx, float lasty, int cursorType, int button, int pressure, int pressureMin, int pressureMax) | |
Public Attributes | |
MouseButton | mButton |
The button this event is about. | |
float | mXStart |
X coordinate when the mouse button was first pressed, -1 to 1. | |
float | mYStart |
Y coordinate when the mouse button was pressed, -1 to 1. | |
float | mLastX |
float | mLastY |
int | mPressure |
Pressure value as defined by SDL. | |
int | mPressureMax |
int | mPressureMin |
Base class for events involving a mouse click.
Sirikata::Input::MouseDownEvent::MouseDownEvent | ( | const PointerDevicePtr & | dev, |
float | xstart, | ||
float | ystart, | ||
float | xend, | ||
float | yend, | ||
float | lastx, | ||
float | lasty, | ||
int | cursorType, | ||
int | button, | ||
int | pressure, | ||
int | pressureMin, | ||
int | pressureMax | ||
) | [inline] |
float Sirikata::Input::MouseDownEvent::deltaLastX | ( | ) | const [inline] |
float Sirikata::Input::MouseDownEvent::deltaLastY | ( | ) | const [inline] |
float Sirikata::Input::MouseDownEvent::deltaX | ( | ) | const [inline] |
mX - mXStart: Returns a value between -1 and 1
float Sirikata::Input::MouseDownEvent::deltaY | ( | ) | const [inline] |
mY - mYStart: Returns a value between -1 and 1
The button this event is about.
Pressure value as defined by SDL.
X coordinate when the mouse button was first pressed, -1 to 1.
Y coordinate when the mouse button was pressed, -1 to 1.