aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/input.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-04-20 10:07:18 +0000
committerTravis Howell2009-04-20 10:07:18 +0000
commit4cf0f0a9a50f6a87a9a769c51f7a7958c13844a7 (patch)
tree00b36090504a34d919539f0dcb24638ed9a49270 /engines/agos/input.cpp
parente15dd070f8bf38c9a2d209f3f554d4db689b9f91 (diff)
downloadscummvm-rg350-4cf0f0a9a50f6a87a9a769c51f7a7958c13844a7.tar.gz
scummvm-rg350-4cf0f0a9a50f6a87a9a769c51f7a7958c13844a7.tar.bz2
scummvm-rg350-4cf0f0a9a50f6a87a9a769c51f7a7958c13844a7.zip
Enable the arrow keys in Elvira 1/2.
svn-id: r40024
Diffstat (limited to 'engines/agos/input.cpp')
-rw-r--r--engines/agos/input.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index afb285e50c..158e263677 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -199,8 +199,7 @@ void AGOSEngine::waitForInput() {
_keyPressed.keycode == Common::KEYCODE_F10)
displayBoxStars();
if (processSpecialKeys()) {
- if ((getGameType() == GType_PP && getGameId() != GID_DIMP) ||
- getGameType() == GType_WW)
+ if (getGameId() != GID_DIMP)
goto out_of_here;
}
if (_lastHitArea3 == (HitArea *) -1) {
@@ -474,6 +473,10 @@ bool AGOSEngine::processSpecialKeys() {
_verbHitArea = 302;
else if (getGameType() == GType_WW)
_verbHitArea = 239;
+ else if (getGameType() == GType_ELVIRA2 && isBoxDead(101))
+ _verbHitArea = 200;
+ else if (getGameType() == GType_ELVIRA1 && isBoxDead(101))
+ _verbHitArea = 214;
verbCode = true;
break;
case Common::KEYCODE_DOWN:
@@ -481,6 +484,10 @@ bool AGOSEngine::processSpecialKeys() {
_verbHitArea = 304;
else if (getGameType() == GType_WW)
_verbHitArea = 241;
+ else if (getGameType() == GType_ELVIRA2 && isBoxDead(107))
+ _verbHitArea = 202;
+ else if (getGameType() == GType_ELVIRA1 && isBoxDead(105))
+ _verbHitArea = 215;
verbCode = true;
break;
case Common::KEYCODE_RIGHT:
@@ -488,6 +495,10 @@ bool AGOSEngine::processSpecialKeys() {
_verbHitArea = 303;
else if (getGameType() == GType_WW)
_verbHitArea = 240;
+ else if (getGameType() == GType_ELVIRA2 && isBoxDead(102))
+ _verbHitArea = 201;
+ else if (getGameType() == GType_ELVIRA1 && isBoxDead(103))
+ _verbHitArea = 216;
verbCode = true;
break;
case Common::KEYCODE_LEFT:
@@ -495,6 +506,10 @@ bool AGOSEngine::processSpecialKeys() {
_verbHitArea = 301;
else if (getGameType() == GType_WW)
_verbHitArea = 242;
+ else if (getGameType() == GType_ELVIRA2 && isBoxDead(104))
+ _verbHitArea = 203;
+ else if (getGameType() == GType_ELVIRA1 && isBoxDead(107))
+ _verbHitArea = 217;
verbCode = true;
break;
case Common::KEYCODE_ESCAPE: