30#ifndef MOUSE_POINTER_H
31#define MOUSE_POINTER_H
33#include <util/common.h>
56 int xres, yres, xori, yori;
57 float screenX, screenY, screenZ;
58 float screenH, screenP, screenR;
60 int wheelCounter[2], newWheelCounter[2];
62 typedef std::deque<MouseEvent> EventQueue;
63 EventQueue eventQueue;
64 double mouseTime, mouseButtonTime;
65 void queueEvent(
int type,
int state,
int code);
70 bool buttonPressed =
false;
77 void handleEvent(
int type,
int state,
int code,
bool queue =
true);
81 void setMatrix(
const osg::Matrix &mat);
Definition: ARToolKit.h:33
Definition: buttondevice.h:28
Definition: coMousePointer.h:43
int state
Definition: coMousePointer.h:44
int code
Definition: coMousePointer.h:44
int type
Definition: coMousePointer.h:44
Definition: coMousePointer.h:48
void handleEvent(int type, int state, int code, bool queue=true)
float x() const
current mouse screen x coordinate
int wheel(size_t num=0) const
float winHeight() const
height of window where mouse events are tracked
float y() const
current mouse screen y coordinate
unsigned int buttonState() const
float screenWidth() const
width of screen where mouse events are tracked
float winWidth() const
width of window where mouse events are tracked
const osg::Matrix & getMatrix() const
float screenHeight() const
height of screen where mouse events are tracked
The Input class.
Definition: input.h:40
Definition: trackingbody.h:29