diff options
author | Matthew Hoops | 2011-10-13 20:59:20 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-13 20:59:20 -0400 |
commit | 753006ae1a89d2e54477e3782e72c187d90d4083 (patch) | |
tree | 6f9f9521e3f78f188cbb674078bda7d050500db8 /engines/pegasus/input.h | |
parent | 13fef21fed3631af3c8ebc5c34ccaf2d077af983 (diff) | |
download | scummvm-rg350-753006ae1a89d2e54477e3782e72c187d90d4083.tar.gz scummvm-rg350-753006ae1a89d2e54477e3782e72c187d90d4083.tar.bz2 scummvm-rg350-753006ae1a89d2e54477e3782e72c187d90d4083.zip |
PEGASUS: Add the WSC neighborhood
Seems to be working fine, minus the molecule sprites (though the minigame is completable and the antidote can be found).
Diffstat (limited to 'engines/pegasus/input.h')
-rwxr-xr-x | engines/pegasus/input.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/pegasus/input.h b/engines/pegasus/input.h index 96df249737..8778ffbf2f 100755 --- a/engines/pegasus/input.h +++ b/engines/pegasus/input.h @@ -358,6 +358,7 @@ public: bool anyInputBitSet(const tInputBits bits) const { return (_inputState & bits) != 0; } + bool isAltDown() const { return _altDown; } bool isConsoleRequested() const { return _consoleRequested; } void clearInput() { @@ -365,16 +366,19 @@ public: _inputLocation.x = 0; _inputLocation.y = 0; _consoleRequested = false; + _altDown = false; } protected: void setInputBits(const tInputBits state) { _inputState = state; } void setInputLocation(const Common::Point &where) { _inputLocation = where; } void setConsoleRequested(bool consoleRequested) { _consoleRequested = consoleRequested; } + void setAltDown(bool altDown) { _altDown = altDown; } tInputBits _inputState; Common::Point _inputLocation; bool _consoleRequested; + bool _altDown; }; class InputHandler { @@ -476,7 +480,7 @@ public: static bool isToggleInfoInput(const Input &input) { return input.fourButtonDown(); } // Hmmmmm.... - static bool isEasterEggModifierInput(const Input &input) { return input.mod2ButtonAnyDown(); } + static bool isEasterEggModifierInput(const Input &input) { return input.isAltDown(); } static bool isTogglePauseInput(const Input &input) { return input.mod3ButtonDown(); } }; |