From 7632246264102d88922fc963284af6250ea12f57 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 15 Jun 2012 13:32:43 +0200 Subject: GOB: Implement Util::getKeyState() for Little Red This makes the bees level playable, removing the "lock-up". Collision detection between Little Red and the bees and butterflies doesn't work yet though, so they're just flying through her. Nevertheless, the game seems to be completable now. --- engines/gob/inter.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/gob/inter.h') diff --git a/engines/gob/inter.h b/engines/gob/inter.h index 907a275e50..0625646cdd 100644 --- a/engines/gob/inter.h +++ b/engines/gob/inter.h @@ -142,8 +142,9 @@ protected: VariableStack _varStack; - // The busy-wait detection in o1_keyFunc breaks fast scrolling in Ween - bool _noBusyWait; + // Busy-wait detection + bool _noBusyWait; + uint32 _lastBusyWait; GobEngine *_vm; @@ -172,6 +173,8 @@ protected: void storeString(const char *value); uint32 readValue(uint16 index, uint16 type); + + void handleBusyWait(); }; class Inter_v1 : public Inter { @@ -522,6 +525,8 @@ protected: virtual void setupOpcodesDraw(); virtual void setupOpcodesFunc(); virtual void setupOpcodesGob(); + + void oLittleRed_keyFunc(OpFuncParams ¶ms); }; class Inter_v3 : public Inter_v2 { -- cgit v1.2.3