Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_MOUSE_OSGMOUSEHANDLER_H
17 #define SURGSIM_DEVICES_MOUSE_OSGMOUSEHANDLER_H
21 #include <osgGA/GUIEventHandler>
40 bool handle(
const osgGA::GUIEventAdapter& eventHandler, osgGA::GUIActionAdapter& actionAdapter)
override;
59 #endif // SURGSIM_DEVICES_MOUSE_OSGMOUSEHANDLER_H
OsgMouseHandler()
Constructor.
Definition: OsgMouseHandler.cpp:24
bool handle(const osgGA::GUIEventAdapter &eventHandler, osgGA::GUIActionAdapter &actionAdapter) override
Method to handle GUI event.
Definition: OsgMouseHandler.cpp:29
float m_lastX
lastX is the X-coordinate of mouse's last location lastY is the Y-coordinate of mouse's last location
Definition: OsgMouseHandler.h:48
int m_lastScrollY
Definition: OsgMouseHandler.h:53
std::weak_ptr< MouseScaffold > m_mouseScaffold
A back pointer to the scaffold which owns this handle.
Definition: OsgMouseHandler.h:44
Definition: CompoundShapeToGraphics.cpp:30
Definition: OsgMouseHandler.h:31
int m_lastButtonMask
Last button mask.
Definition: OsgMouseHandler.h:51
int m_lastScrollX
Last direction of mouse wheel's horizontal (X) and vertical (Y) movement.
Definition: OsgMouseHandler.h:53
float m_lastY
Definition: OsgMouseHandler.h:48