Updated to reflect changes to osgGA::EventQueue.
This commit is contained in:
@@ -119,7 +119,7 @@ void KeyboardMouseCallback::passiveMouseMotion( float mx, float my)
|
||||
void KeyboardMouseCallback::mouseWarp( float mx, float my)
|
||||
{
|
||||
updateWindowSize();
|
||||
if (_eventQueue.valid()) _eventQueue->mouseWarp(mx,my); // need mouse warp??
|
||||
if (_eventQueue.valid()) _eventQueue->mouseWarped(mx,my); // need mouse warp??
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -378,8 +378,6 @@ void Viewer::setUpViewer(unsigned int options)
|
||||
setKeyboardMouseCallback(new osgProducer::KeyboardMouseCallback( _kbm.get(), _done, (options & ESCAPE_SETS_DONE)!=0 ));
|
||||
}
|
||||
|
||||
getEventQueue()->setStartTick(_start_tick);
|
||||
|
||||
// register the callback with the keyboard mouse manger.
|
||||
_kbm->setCallback( _kbmcb.get() );
|
||||
//kbm->allowContinuousMouseMotionUpdate(true);
|
||||
@@ -948,7 +946,7 @@ void Viewer::requestWarpPointer(float x,float y)
|
||||
{
|
||||
osg::notify(osg::INFO) << "requestWarpPointer x= "<<x<<" y="<<y<<std::endl;
|
||||
|
||||
getEventQueue()->mouseWarp(x,y);
|
||||
getEventQueue()->mouseWarped(x,y);
|
||||
_kbmcb->getKeyboardMouse()->positionPointer(x,y);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user