From 8ce8061dbeeedffc2b561f3701c00f790186a9a6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 1 Jan 2007 20:01:45 +0000 Subject: [PATCH] Added mouseWarped update --- src/osgViewer/GraphicsWindowX11.cpp | 2 ++ src/osgViewer/View.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 2978275ea..5cb639b56 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -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 diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index fe7176343..115732b75 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -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(_camera->getGraphicsContext()); if (gw) {