#include <InputDevice.hpp>
List of all members.
Classes |
struct | DragInfo |
Public Member Functions |
| PointerDevice () |
void | setDragDeadband (float deadband) |
void | pushRelativeMode () |
void | popRelativeMode () |
bool | getRelativeMode () const |
void | firePointerMotion (const PointerDevicePtr &thisptr, float xPixel, float yPixel, int cursorType, int pressure, int pressmin, int pressmax) |
void | firePointerClick (const PointerDevicePtr &thisptr, float xPixel, float yPixel, int cursor, int button, bool state) |
Protected Member Functions |
virtual void | setRelativeMode (bool enabled)=0 |
Protected Attributes |
float | mDeadband |
unsigned int | mRelativeMode |
Private Types |
typedef std::list< DragInfo > | DragMap |
Private Attributes |
DragMap | mDragInfo |
Member Typedef Documentation
Constructor & Destructor Documentation
Sirikata::Input::PointerDevice::PointerDevice |
( |
| ) |
[inline] |
Member Function Documentation
void Sirikata::Input::PointerDevice::firePointerClick |
( |
const PointerDevicePtr & |
thisptr, |
|
|
float |
xPixel, |
|
|
float |
yPixel, |
|
|
int |
cursor, |
|
|
int |
button, |
|
|
bool |
state |
|
) |
| |
References Sirikata::Input::DRAG_END, Sirikata::Input::InputManager::fire(), Sirikata::Input::PointerDevice::DragInfo::mButton, mDragInfo, Sirikata::Input::PointerDevice::DragInfo::mDragStartX, Sirikata::Input::PointerDevice::DragInfo::mDragStartY, Sirikata::Input::PointerDevice::DragInfo::mDragX, Sirikata::Input::PointerDevice::DragInfo::mDragY, Sirikata::Input::PointerDevice::DragInfo::mIsDragging, Sirikata::Input::InputDevice::mManager, Sirikata::Input::PointerDevice::DragInfo::mOffsetX, Sirikata::Input::PointerDevice::DragInfo::mOffsetY, and mRelativeMode.
void Sirikata::Input::PointerDevice::firePointerMotion |
( |
const PointerDevicePtr & |
thisptr, |
|
|
float |
xPixel, |
|
|
float |
yPixel, |
|
|
int |
cursorType, |
|
|
int |
pressure, |
|
|
int |
pressmin, |
|
|
int |
pressmax |
|
) |
| |
References Sirikata::Input::DRAG_DEADBAND, Sirikata::Input::DRAG_DRAG, Sirikata::Input::DRAG_START, Sirikata::Input::InputManager::fire(), Sirikata::Input::PointerDevice::DragInfo::mButton, mDeadband, mDragInfo, Sirikata::Input::PointerDevice::DragInfo::mDragStartX, Sirikata::Input::PointerDevice::DragInfo::mDragStartY, Sirikata::Input::PointerDevice::DragInfo::mDragX, Sirikata::Input::PointerDevice::DragInfo::mDragY, Sirikata::Input::PointerDevice::DragInfo::mIsDragging, Sirikata::Input::InputDevice::mManager, Sirikata::Input::PointerDevice::DragInfo::mOffsetX, Sirikata::Input::PointerDevice::DragInfo::mOffsetY, and mRelativeMode.
Referenced by Sirikata::Input::SDLMouse::fireMotion().
bool Sirikata::Input::PointerDevice::getRelativeMode |
( |
| ) |
const [inline] |
void Sirikata::Input::PointerDevice::popRelativeMode |
( |
| ) |
[inline] |
void Sirikata::Input::PointerDevice::pushRelativeMode |
( |
| ) |
[inline] |
void Sirikata::Input::PointerDevice::setDragDeadband |
( |
float |
deadband | ) |
[inline] |
virtual void Sirikata::Input::PointerDevice::setRelativeMode |
( |
bool |
enabled | ) |
[protected, pure virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: