+ // Scene could be added or removed while processing the events
+ // Copy the Scene container locally to avoid possibly invalid iterator
+ SceneContainer scenes = mScenes;
+
+ // process events in all scenes
+ for( auto scene : scenes )
+ {
+ scene->ProcessEvents();
+ }