Added createEvent() convinience method.

This commit is contained in:
Robert Osfield
2006-03-15 15:49:21 +00:00
parent cbc2668c5c
commit 85edf40fcb
2 changed files with 9 additions and 0 deletions

View File

@@ -255,3 +255,9 @@ void EventQueue::frame(double t)
addEvent(event);
}
GUIEventAdapter* EventQueue::createEvent()
{
if (_accumulateEventState.valid()) return new GUIEventAdapter(*_accumulateEventState.get());
else return new GUIEventAdapter();
}