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 Definition: CompoundShapeToGraphics.cpp:29
OsgMouseHandler()
Constructor.
Definition: OsgMouseHandler.cpp:24
int m_lastScrollX
Last direction of mouse wheel's horizontal (X) and vertical (Y) movement.
Definition: OsgMouseHandler.h:53
Definition: OsgMouseHandler.h:30
std::weak_ptr< MouseScaffold > m_mouseScaffold
A back pointer to the scaffold which owns this handle.
Definition: OsgMouseHandler.h:44
bool handle(const osgGA::GUIEventAdapter &eventHandler, osgGA::GUIActionAdapter &actionAdapter) override
Method to handle GUI event.
Definition: OsgMouseHandler.cpp:29
int m_lastScrollY
Definition: OsgMouseHandler.h:53
float m_lastY
Definition: OsgMouseHandler.h:48
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_lastButtonMask
Last button mask.
Definition: OsgMouseHandler.h:51