Added mouseWarped update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user