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

Base class for events involving a mouse click. More...

#include <InputEvents.hpp>

Inheritance diagram for Sirikata::Input::MouseDownEvent:
Collaboration diagram for Sirikata::Input::MouseDownEvent:

List of all members.

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

Detailed Description

Base class for events involving a mouse click.


Constructor & Destructor Documentation

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]

Member Function Documentation

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


Member Data Documentation

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.


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