30 #ifndef MOUSE_POINTER_H
31 #define MOUSE_POINTER_H
33 #include <util/common.h>
57 int xres, yres, xori, yori;
58 float screenX, screenY, screenZ;
59 float screenH, screenP, screenR;
61 int wheelCounter[2], newWheelCounter[2];
63 typedef std::deque<MouseEvent> EventQueue;
64 EventQueue eventQueue;
65 double mouseTime, mouseButtonTime;
66 void queueEvent(
int type,
int state,
int code);
70 bool buttonPressed =
false;
74 double eventTime()
const;
77 void handleEvent(
int type,
int state,
int code,
bool queue =
true);
80 void setMatrix(
const osg::Matrix &mat);
81 const osg::Matrix &getMatrix()
const;
90 float winWidth()
const;
93 float winHeight()
const;
96 float screenWidth()
const;
99 float screenHeight()
const;
101 int wheel(
size_t num = 0)
const;
103 unsigned int buttonState()
const;
Definition: buttondevice.h:27
int type
Definition: coMousePointer.h:43
int state
Definition: coMousePointer.h:43
Definition: coMousePointer.h:41
The Input class.
Definition: input.h:38
Definition: coMousePointer.h:46
int code
Definition: coMousePointer.h:43