aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2007-01-03 11:40:39 +0000
committerTravis Howell2007-01-03 11:40:39 +0000
commit25141dd90139ea009d3fb94e1fa8c8bd90ce84ea (patch)
treec2f087faf27a33bea27f959e7e46b38bf5aa093c /engines/agos
parent85b780baf1ffbb1a3b77b8a6b7916a45364a74c4 (diff)
downloadscummvm-rg350-25141dd90139ea009d3fb94e1fa8c8bd90ce84ea.tar.gz
scummvm-rg350-25141dd90139ea009d3fb94e1fa8c8bd90ce84ea.tar.bz2
scummvm-rg350-25141dd90139ea009d3fb94e1fa8c8bd90ce84ea.zip
Limit keyboard specific verb code to arrow keys only in PP/WW
svn-id: r24972
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/input.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index 2856cf3f1b..a17dacfda7 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -459,30 +459,36 @@ void AGOSEngine::permitInput() {
}
bool AGOSEngine::processSpecialKeys() {
+ bool verbCode = false;
+
switch (_keyPressed) {
case 17: // Up
if (getGameType() == GType_PP)
_verbHitArea = 302;
else if (getGameType() == GType_WW)
_verbHitArea = 239;
+ verbCode = true;
break;
case 18: // Down
if (getGameType() == GType_PP)
_verbHitArea = 304;
else if (getGameType() == GType_WW)
_verbHitArea = 241;
+ verbCode = true;
break;
case 19: // Right
if (getGameType() == GType_PP)
_verbHitArea = 303;
else if (getGameType() == GType_WW)
_verbHitArea = 240;
+ verbCode = true;
break;
case 20: // Left
if (getGameType() == GType_PP)
_verbHitArea = 301;
else if (getGameType() == GType_WW)
_verbHitArea = 242;
+ verbCode = true;
break;
case 27: // escape
_exitCutscene = true;
@@ -585,9 +591,8 @@ bool AGOSEngine::processSpecialKeys() {
break;
}
- bool result = (_keyPressed != 0);
_keyPressed = 0;
- return result;
+ return verbCode;
}
} // End of namespace AGOS