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
This commit is contained in:
David Turner 2011-01-14 03:25:39 +00:00
parent 28e7ea8c22
commit 81729b87e8
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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);
};