Fixes to the handling of mouse coords after changes in the default behavior

of Producer.
This commit is contained in:
Robert Osfield
2003-05-20 13:21:05 +00:00
parent 4e9724245a
commit 094e0f2e48
2 changed files with 17 additions and 3 deletions

View File

@@ -508,6 +508,8 @@ void Viewer::requestWarpPointer(float x,float y)
{
if (_kbmcb)
{
osg::notify(osg::INFO) << "requestWarpPointer x= "<<x<<" y="<<y<<std::endl;
EventAdapter::_s_mx = x;
EventAdapter::_s_my = y;
_kbmcb->getKeyboardMouse()->positionPointer(x,y);