aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorDavid Turner2011-01-14 03:25:39 +0000
committerDavid Turner2011-01-14 03:25:39 +0000
commit81729b87e85955d919f0b3e5b6a0967e4724a3df (patch)
tree1fa7849e5c3c7fea04108131c9fd2e55fa246cbc /engines/parallaction
parent28e7ea8c2217bceee9fd581cb78c9c198cf3c6fd (diff)
downloadscummvm-rg350-81729b87e85955d919f0b3e5b6a0967e4724a3df.tar.gz
scummvm-rg350-81729b87e85955d919f0b3e5b6a0967e4724a3df.tar.bz2
scummvm-rg350-81729b87e85955d919f0b3e5b6a0967e4724a3df.zip
PARALLACTION: Add debug console command "showmouse".
This command forces the mouse state to Enabled and Visible. This is intended to help playtesting in Big Red Adventure, which has an issue currently with the mouse pointer getting stuck in the hidden state in some cases. svn-id: r55234
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/debug.cpp7
-rw-r--r--engines/parallaction/debug.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/parallaction/debug.cpp b/engines/parallaction/debug.cpp
index f9e80fa288..bebbab968b 100644
--- a/engines/parallaction/debug.cpp
+++ b/engines/parallaction/debug.cpp
@@ -47,7 +47,7 @@ Debugger::Debugger(Parallaction *vm)
DCmd_Register("locations", WRAP_METHOD(Debugger, Cmd_Locations));
DCmd_Register("gfxobjects", WRAP_METHOD(Debugger, Cmd_GfxObjects));
DCmd_Register("programs", WRAP_METHOD(Debugger, Cmd_Programs));
-
+ DCmd_Register("showmouse", WRAP_METHOD(Debugger, Cmd_ShowMouse));
}
@@ -322,4 +322,9 @@ bool Debugger::Cmd_Programs(int argc, const char** argv) {
return true;
}
+bool Debugger::Cmd_ShowMouse(int argc, const char** argv) {
+ _mouseState = MOUSE_ENABLED_SHOW;
+ return true;
+}
+
} // namespace Parallaction
diff --git a/engines/parallaction/debug.h b/engines/parallaction/debug.h
index 2f807b0e88..887d08e945 100644
--- a/engines/parallaction/debug.h
+++ b/engines/parallaction/debug.h
@@ -33,6 +33,7 @@ private:
bool Cmd_Locations(int argc, const char **argv);
bool Cmd_GfxObjects(int argc, const char **argv);
bool Cmd_Programs(int argc, const char** argv);
+ bool Cmd_ShowMouse(int argc, const char** argv);
Common::String decodeZoneFlags(uint32 flags);
};