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

Base class for all pointer motion events. More...

#include <InputEvents.hpp>

Inheritance diagram for Sirikata::Input::MouseEvent:
Collaboration diagram for Sirikata::Input::MouseEvent:

List of all members.

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.

Detailed Description

Base class for all pointer motion events.


Constructor & Destructor Documentation

Sirikata::Input::MouseEvent::MouseEvent ( const PointerDevicePtr dev,
float  x,
float  y,
int  cursorType 
) [inline]

Member Function Documentation

PointerDevicePtr Sirikata::Input::MouseEvent::getDevice ( ) const [inline]

Member Data Documentation

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.


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