diff options
author | Johannes Schickel | 2008-12-16 17:40:34 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-12-16 17:40:34 +0000 |
commit | 696ed52959e7853ff2039fb0ce1063cebb9a1cd2 (patch) | |
tree | 4e199ac773eb917ef0be0c8e5500ac36119d6138 /engines/kyra/kyra_lok.h | |
parent | 2706e527c214cfcc77502b3bdb639d5a341d3c1a (diff) | |
download | scummvm-rg350-696ed52959e7853ff2039fb0ce1063cebb9a1cd2.tar.gz scummvm-rg350-696ed52959e7853ff2039fb0ce1063cebb9a1cd2.tar.bz2 scummvm-rg350-696ed52959e7853ff2039fb0ce1063cebb9a1cd2.zip |
Switched kyra1 to use the same input functionality as kyra2 and kyra3.
svn-id: r35393
Diffstat (limited to 'engines/kyra/kyra_lok.h')
-rw-r--r-- | engines/kyra/kyra_lok.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/kyra/kyra_lok.h b/engines/kyra/kyra_lok.h index d294e29fad..ebe110981e 100644 --- a/engines/kyra/kyra_lok.h +++ b/engines/kyra/kyra_lok.h @@ -119,6 +119,7 @@ public: Screen *screen() { return _screen; } Animator_LoK *animator() { return _animator; } + GUI *gui() const { return _gui; } virtual Movie *createWSAMovie(); uint8 **shapes() { return _shapes; } @@ -198,7 +199,8 @@ public: void delayUntil(uint32 timestamp, bool updateGameTimers = false, bool update = false, bool isMainLoop = false); void delay(uint32 millis, bool update = false, bool isMainLoop = false); void delayWithTicks(int ticks); - void waitForEvent(); + + bool skipFlag() const; // TODO void registerDefaultSettings(); @@ -218,17 +220,13 @@ protected: Common::Error loadGameState(int slot); protected: // input - void processInput(); + void processInput(int xpos, int ypos); int processInputHelper(int xpos, int ypos); int clickEventHandler(int xpos, int ypos); void clickEventHandler2(); void updateMousePointer(bool forceUpdate = false); bool hasClickedOnExit(int xpos, int ypos); - bool _skipFlag; - bool skipFlag() const { return _skipFlag; } - void resetSkipFlag(bool removeEvent = true) { _skipFlag = false; } - // scene // -> init void loadSceneMsc(); @@ -389,16 +387,14 @@ protected: int buttonInventoryCallback(Button *caller); int buttonAmuletCallback(Button *caller); + bool _seqPlayerFlag; bool _skipIntroFlag; bool _abortIntroFlag; + bool _menuDirectlyToLoad; - bool _abortWalkFlag; - bool _abortWalkFlag2; - bool _mousePressFlag; uint8 *_itemBkgBackUp[2]; uint8 *_shapes[373]; int8 _itemInHand; - bool _handleInput; bool _changedScene; int _unkScreenVar1, _unkScreenVar2, _unkScreenVar3; int _beadStateVar; |