Added event and update callbacks to pass up changes to the mouse position to the ImageSequence::seek() to control which images is selected based on mouse x position

This commit is contained in:
Robert Osfield
2012-10-31 16:07:23 +00:00
parent fa2fb07609
commit a6f3e0af78
5 changed files with 124 additions and 16 deletions

View File

@@ -2179,7 +2179,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterP3DXML::readNode(osgDB::XmlNode::Inp
{
osgPresentation::SlideEventHandler* seh = new osgPresentation::SlideEventHandler;
seh->set(presentation_node.get());
presentation_node->setEventCallback(seh);
presentation_node->addEventCallback(seh);
}
}
return presentation_node.release();