Added mouseWarped update

This commit is contained in:
Robert Osfield
2007-01-01 20:01:45 +00:00
parent 7155f7d1b0
commit 8ce8061dbe
2 changed files with 4 additions and 0 deletions

View File

@@ -876,6 +876,8 @@ void GraphicsWindowX11::requestWarpPointer(float x,float y)
XFlush(_display);
XSync(_display, 0);
getEventQueue()->mouseWarped(x,y);
}
struct X11WindowingSystemInterface : public osg::GraphicsContext::WindowingSystemInterface

View File

@@ -280,6 +280,8 @@ void View::requestWarpPointer(float x,float y)
osgGA::GUIEventAdapter* eventState = getEventQueue()->getCurrentEventState();
bool view_invert_y = eventState->getMouseYOrientation()==osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS;
getEventQueue()->mouseWarped(x,y);
osgViewer::GraphicsWindow* gw = dynamic_cast<osgViewer::GraphicsWindow*>(_camera->getGraphicsContext());
if (gw)
{