aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-03-18 19:26:00 +0000
committerPaweł Kołodziejski2003-03-18 19:26:00 +0000
commit52bf93a8aa055f54eb155a7f205cbfc805e51dbf (patch)
tree7d87f7a07d0645cc69e371705f3a0b4f19173042 /scumm/script_v6.cpp
parent0602882b1819fc35bf071ac0418a0609400f71bd (diff)
downloadscummvm-rg350-52bf93a8aa055f54eb155a7f205cbfc805e51dbf.tar.gz
scummvm-rg350-52bf93a8aa055f54eb155a7f205cbfc805e51dbf.tar.bz2
scummvm-rg350-52bf93a8aa055f54eb155a7f205cbfc805e51dbf.zip
added input keys support for dig ingame
svn-id: r6833
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp31
1 files changed, 23 insertions, 8 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 066e135525..23440e47c9 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -2672,21 +2672,36 @@ void Scumm_v6::o6_kernelGetFunctions() {
13 = thrust
336 = thrust
328 = thrust
- 27 = abord
+ 27 = abort
97 = left
331 = left
115 = right
- 333 = tight
+ 333 = right
*/
- //FIXME: this is hack to allow turn on light bridge,
- //How to check is left button pressed ?
- if ((_gameId == GID_DIG) && (args[1] == 13)) {
- push(1);
- break;
+
+ if((args[1] == 27) && (_lastKeyHit == 27)) {
+ push(1); // abort
+ return;
+ }
+
+ if( ((args[1] == 328) || (args[1] == 336) || (args[1] == 13)) &&
+ ((_vars[VAR_LEFTBTN_HOLD]) || (_lastKeyHit == 13) || (_lastKeyHit == 274) ||
+ (_lastKeyHit == 273)) ) {
+ push(1); // thrust
+ return;
+ }
+
+ if(((args[1] == 97) || (args[1] == 331)) && (_lastKeyHit == 276)) {
+ push(1); // left
+ return;
+ }
+
+ if(((args[1] == 115) || (args[1] == 333)) && (_lastKeyHit == 275)) {
+ push(1); // right
+ return;
}
- warning("o6_kernelGetFunctions: getInput(%d) against %d", args[1], _lastKeyHit);
push(0);
break;
case 212: