Implemented Common::EventManager::pushEvent() to insert fake events into the event queue. Quit and RTL events have been added, and are now tracked by the DefaultEventManager using shouldQuit() and shouldRTL(). AGOS is working with this new implementation, other engines to follow.
svn-id: r32952
This commit is contained in:
parent
b50df858eb
commit
a4f56de13a
13 changed files with 66 additions and 52 deletions
|
@ -108,15 +108,11 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
|
|||
_aboutDialog->runModal();
|
||||
break;
|
||||
case kRTLCmd:
|
||||
//g_system->getEventManager()->setQuit();
|
||||
//g_system->getEventManager()->setRTL();
|
||||
_engine->_quit = true;
|
||||
_engine->_rtl = true;
|
||||
g_system->getEventManager()->pushEvent(Common::EVENT_RTL);
|
||||
close();
|
||||
break;
|
||||
case kQuitCmd:
|
||||
//g_system->getEventManager()->setQuit();
|
||||
_engine->_quit = true;
|
||||
g_system->getEventManager()->pushEvent(Common::EVENT_QUIT);
|
||||
close();
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue