diff options
author | Matthew Hoops | 2011-09-22 15:37:12 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-22 15:37:12 -0400 |
commit | ea36ec452e9274985b550dc14d1fc33b0438ffba (patch) | |
tree | c6dcc55a1f1c75da3b6de3f0c259fe8792e32d68 /engines/pegasus/input.h | |
parent | dc463816af1073a8dae80bec1b56ea39d317819d (diff) | |
download | scummvm-rg350-ea36ec452e9274985b550dc14d1fc33b0438ffba.tar.gz scummvm-rg350-ea36ec452e9274985b550dc14d1fc33b0438ffba.tar.bz2 scummvm-rg350-ea36ec452e9274985b550dc14d1fc33b0438ffba.zip |
PEGASUS: Add support for the console back
Diffstat (limited to 'engines/pegasus/input.h')
-rwxr-xr-x | engines/pegasus/input.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/pegasus/input.h b/engines/pegasus/input.h index 06724346e5..d70a573bc0 100755 --- a/engines/pegasus/input.h +++ b/engines/pegasus/input.h @@ -353,19 +353,24 @@ public: void getInputLocation(Common::Point &where) const { where = _inputLocation; } bool anyInputBitSet(const tInputBits bits) const { return (_inputState & bits) != 0; } - + + bool isConsoleRequested() const { return _consoleRequested; } + void clearInput() { _inputState = kAllUpBits; _inputLocation.x = 0; _inputLocation.y = 0; + _consoleRequested = false; } protected: void setInputBits(const tInputBits state) { _inputState = state; } void setInputLocation(const Common::Point &where) { _inputLocation = where; } + void setConsoleRequested(bool consoleRequested) { _consoleRequested = consoleRequested; } tInputBits _inputState; Common::Point _inputLocation; + bool _consoleRequested; }; class InputHandler { |