mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Send events through queue instead of calling game methods directly
This commit is contained in:
@@ -466,6 +466,21 @@ void HandleEvent (void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (theEvent.m_vosEvent.m_eventType == GpVOSEventType_t::kMenuItemSelected)
|
||||
{
|
||||
switch (theEvent.m_vosEvent.m_event.m_menuItemSelectionEvent)
|
||||
{
|
||||
case GpMenuItemSelectionEvents::kAboutGliderPRO:
|
||||
DoAbout();
|
||||
break;
|
||||
case GpMenuItemSelectionEvents::kAboutAerofoil:
|
||||
DoAboutFramework();
|
||||
break;
|
||||
case GpMenuItemSelectionEvents::kPreferences:
|
||||
DoSettingsMain();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
HandleIdleTask();
|
||||
|
Reference in New Issue
Block a user