~ubuntu-branches/ubuntu/raring/scummvm/raring

« back to all changes in this revision

Viewing changes to engines/parallaction/debug.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-05-25 19:02:23 UTC
  • mto: (21.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20110525190223-fiqm0oaec714xk31
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 *
21
 
 * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-2-1/engines/parallaction/debug.cpp $
22
 
 * $Id: debug.cpp 49141 2010-05-22 15:56:27Z peres001 $
 
21
 * $URL$
 
22
 * $Id$
23
23
 *
24
24
 */
25
25
 
47
47
        DCmd_Register("locations",      WRAP_METHOD(Debugger, Cmd_Locations));
48
48
        DCmd_Register("gfxobjects",     WRAP_METHOD(Debugger, Cmd_GfxObjects));
49
49
        DCmd_Register("programs",       WRAP_METHOD(Debugger, Cmd_Programs));
50
 
 
 
50
        DCmd_Register("showmouse",      WRAP_METHOD(Debugger, Cmd_ShowMouse));
51
51
}
52
52
 
53
53
 
54
54
void Debugger::preEnter() {
55
55
        _mouseState = _vm->_input->getMouseState();
 
56
        _vm->pauseEngine(true);
56
57
}
57
58
 
58
59
 
59
60
void Debugger::postEnter() {
 
61
        _vm->pauseEngine(false);
60
62
        _vm->_input->setMouseState(_mouseState);
61
63
        _vm->_input->setArrowCursor();  // unselects the active item, if any
62
64
}
320
322
        return true;
321
323
}
322
324
 
 
325
bool Debugger::Cmd_ShowMouse(int argc, const char** argv) {
 
326
        _mouseState = MOUSE_ENABLED_SHOW;
 
327
        return true;
 
328
}
 
329
 
323
330
} // namespace Parallaction