aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 002068a650..44c90d245e 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -74,15 +74,15 @@ Common::Error DMEngine::run() {
_dungeonMan->setCurrentMapAndPartyMap(dummyMapIndex);
-
-
_displayMan->loadCurrentMapGraphics();
-
_displayMan->loadPalette(gPalCredits);
_eventMan->initMouse();
_eventMan->showMouse(true);
+ startGame();
+
+
while (true) {
_eventMan->processInput();
_displayMan->clearScreen(kColorBlack);
@@ -95,4 +95,10 @@ Common::Error DMEngine::run() {
return Common::kNoError;
}
+
+void DMEngine::startGame() {
+ _eventMan->_primaryMouseInput = gPrimaryMouseInput_Interface;
+ _eventMan->_secondaryMouseInput = gSecondaryMouseInput_Movement;
+}
+
} // End of namespace DM