diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index 2a30cb5d3..71511fd2a 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -314,6 +314,7 @@ void View::requestWarpPointer(float x,float y) { osg::notify(osg::NOTICE)<<"View::requestWarpPointer("<(camera->getGraphicsContext()); if (gw) { + getEventQueue()->mouseWarped(x,y); if (gw->getEventQueue()->getCurrentEventState()->getMouseYOrientation()==osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS) { local_y = gw->getTraits()->height - local_y; } + const_cast(gw)->getEventQueue()->mouseWarped(local_x,local_y); const_cast(gw)->requestWarpPointer(local_x, local_y); } }