diff options
author | Max Horn | 2007-03-17 19:02:05 +0000 |
---|---|---|
committer | Max Horn | 2007-03-17 19:02:05 +0000 |
commit | ed54ea9155961d8ca5d5fb3c7777fc57a29f2751 (patch) | |
tree | 467b926af11cd4129ba003d04ba01de044c7a6df /engines/touche/ui.cpp | |
parent | f272d1957084098c5b53975ad3501074f6971af8 (diff) | |
download | scummvm-rg350-ed54ea9155961d8ca5d5fb3c7777fc57a29f2751.tar.gz scummvm-rg350-ed54ea9155961d8ca5d5fb3c7777fc57a29f2751.tar.bz2 scummvm-rg350-ed54ea9155961d8ca5d5fb3c7777fc57a29f2751.zip |
Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
svn-id: r26180
Diffstat (limited to 'engines/touche/ui.cpp')
-rw-r--r-- | engines/touche/ui.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp index 2113640b4b..a679b83ac7 100644 --- a/engines/touche/ui.cpp +++ b/engines/touche/ui.cpp @@ -377,23 +377,23 @@ void ToucheEngine::handleOptions(int forceDisplay) { } } redrawMenu(&menuData); - OSystem::Event event; + Common::Event event; Common::EventManager *eventMan = _system->getEventManager(); while (eventMan->pollEvent(event)) { const Button *button = 0; switch (event.type) { - case OSystem::EVENT_QUIT: + case Common::EVENT_QUIT: menuData.quit = true; menuData.exit = true; _flagsTable[611] = 1; break; - case OSystem::EVENT_LBUTTONDOWN: + case Common::EVENT_LBUTTONDOWN: button = menuData.findButtonUnderCursor(event.mouse.x, event.mouse.y); if (button) { handleMenuAction(&menuData, button->action); } break; - case OSystem::EVENT_KEYDOWN: + case Common::EVENT_KEYDOWN: if (menuData.mode == kMenuSaveStateMode) { if (event.kbd.keycode == 8) { menuData.removeLastCharFromDescription(_saveLoadCurrentSlot); @@ -402,10 +402,10 @@ void ToucheEngine::handleOptions(int forceDisplay) { } } break; - case OSystem::EVENT_WHEELUP: + case Common::EVENT_WHEELUP: handleMenuAction(&menuData, kActionScrollUpSaves); break; - case OSystem::EVENT_WHEELDOWN: + case Common::EVENT_WHEELDOWN: handleMenuAction(&menuData, kActionScrollDownSaves); break; default: @@ -536,15 +536,15 @@ int ToucheEngine::displayQuitDialog() { int ret = 0; bool quitLoop = false; while (!quitLoop) { - OSystem::Event event; + Common::Event event; Common::EventManager *eventMan = _system->getEventManager(); while (eventMan->pollEvent(event)) { switch (event.type) { - case OSystem::EVENT_QUIT: + case Common::EVENT_QUIT: quitLoop = true; ret = 1; break; - case OSystem::EVENT_KEYDOWN: + case Common::EVENT_KEYDOWN: quitLoop = true; switch (_language) { case Common::FR_FRA: |