From Eric Sokolowsky, support for mouse scroll wheel in osgGA/osgProducer.
This commit is contained in:
@@ -39,6 +39,7 @@ public:
|
||||
};
|
||||
|
||||
enum EventType {
|
||||
NONE=0,
|
||||
PUSH,
|
||||
RELEASE,
|
||||
DOUBLECLICK,
|
||||
@@ -48,7 +49,10 @@ public:
|
||||
KEYUP,
|
||||
FRAME,
|
||||
RESIZE,
|
||||
NONE
|
||||
SCROLLUP,
|
||||
SCROLLDOWN,
|
||||
SCROLLLEFT,
|
||||
SCROLLRIGHT
|
||||
};
|
||||
|
||||
enum KeySymbol
|
||||
|
||||
@@ -75,6 +75,9 @@ class OSGPRODUCER_EXPORT EventAdapter : public osgGA::GUIEventAdapter
|
||||
/** method for adapting resize events. */
|
||||
void adaptResize(double t, float Xmin, float Ymin, float Xmax, float Ymax);
|
||||
|
||||
/** method for adapting mouse scroll wheel events. */
|
||||
void adaptMouseScroll(double t, Producer::KeyboardMouseCallback::ScrollingMotion sm);
|
||||
|
||||
/** method for adapting mouse motion events whilst mouse buttons are pressed.*/
|
||||
void adaptMouseMotion(double t, float x, float y);
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ class OSGPRODUCER_EXPORT KeyboardMouseCallback : public Producer::KeyboardMouseC
|
||||
virtual ~KeyboardMouseCallback() {}
|
||||
|
||||
// override KeyboardMouseCallback methods.
|
||||
virtual void mouseScroll( Producer::KeyboardMouseCallback::ScrollingMotion sm );
|
||||
virtual void mouseMotion( float mx, float my);
|
||||
virtual void passiveMouseMotion( float mx, float my);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user