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/saga | |
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/saga')
-rw-r--r-- | engines/saga/input.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/saga/input.cpp b/engines/saga/input.cpp index fdac5c2fc0..bfe445ced1 100644 --- a/engines/saga/input.cpp +++ b/engines/saga/input.cpp @@ -38,15 +38,15 @@ namespace Saga { int SagaEngine::processInput() { - OSystem::Event event; + Common::Event event; // Point imousePt; Common::EventManager *eventMan = _system->getEventManager(); while (eventMan->pollEvent(event)) { switch (event.type) { - case OSystem::EVENT_KEYDOWN: - if (event.kbd.flags == OSystem::KBD_CTRL) { + case Common::EVENT_KEYDOWN: + if (event.kbd.flags == Common::KBD_CTRL) { if (event.kbd.keycode == 'd') _console->attach(); } @@ -121,32 +121,32 @@ int SagaEngine::processInput() { break; } break; - case OSystem::EVENT_LBUTTONUP: + case Common::EVENT_LBUTTONUP: _leftMouseButtonPressed = false; break; - case OSystem::EVENT_RBUTTONUP: + case Common::EVENT_RBUTTONUP: _rightMouseButtonPressed = false; break; - case OSystem::EVENT_LBUTTONDOWN: + case Common::EVENT_LBUTTONDOWN: _leftMouseButtonPressed = true; _mousePos = event.mouse; _interface->update(_mousePos, UPDATE_LEFTBUTTONCLICK); break; - case OSystem::EVENT_RBUTTONDOWN: + case Common::EVENT_RBUTTONDOWN: _rightMouseButtonPressed = true; _mousePos = event.mouse; _interface->update(_mousePos, UPDATE_RIGHTBUTTONCLICK); break; - case OSystem::EVENT_WHEELUP: + case Common::EVENT_WHEELUP: _interface->update(_mousePos, UPDATE_WHEELUP); break; - case OSystem::EVENT_WHEELDOWN: + case Common::EVENT_WHEELDOWN: _interface->update(_mousePos, UPDATE_WHEELDOWN); break; - case OSystem::EVENT_MOUSEMOVE: + case Common::EVENT_MOUSEMOVE: _mousePos = event.mouse; break; - case OSystem::EVENT_QUIT: + case Common::EVENT_QUIT: shutDown(); break; default: |