2012-11-12 23:26:30 +08:00
|
|
|
#include "EventProperty.h"
|
|
|
|
|
|
|
|
namespace gsc
|
|
|
|
{
|
|
|
|
|
|
|
|
void EventProperty::update(osgViewer::View* view)
|
|
|
|
{
|
|
|
|
if (view && view->getEventQueue() && _event.valid())
|
|
|
|
{
|
2012-11-19 19:25:52 +08:00
|
|
|
view->getEventQueue()->addEvent(_event.get());
|
2012-11-12 23:26:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Serialization support
|
|
|
|
//
|
|
|
|
REGISTER_OBJECT_WRAPPER( gsc_EventProperty,
|
|
|
|
new gsc::EventProperty,
|
|
|
|
gsc::EventProperty,
|
|
|
|
"osg::Object gsc::EventProperty" )
|
|
|
|
{
|
|
|
|
ADD_OBJECT_SERIALIZER( Event, osgGA::GUIEventAdapter, NULL );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace osgGA
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace B
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-11-19 19:25:52 +08:00
|
|
|
}
|