From ed54ea9155961d8ca5d5fb3c7777fc57a29f2751 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Mar 2007 19:02:05 +0000 Subject: 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 --- engines/saga/input.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'engines/saga') 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: -- cgit v1.2.3