diff options
author | uruk | 2013-08-06 01:13:25 +0200 |
---|---|---|
committer | uruk | 2013-08-06 01:13:25 +0200 |
commit | 532306f8cb86882b45cffc1002d0d2a81f28de34 (patch) | |
tree | c767491a748e57559f0ab3c9c51e7810de732509 | |
parent | a971cf3a3997dd71282c5566bb2f5ee062c190bf (diff) | |
download | scummvm-rg350-532306f8cb86882b45cffc1002d0d2a81f28de34.tar.gz scummvm-rg350-532306f8cb86882b45cffc1002d0d2a81f28de34.tar.bz2 scummvm-rg350-532306f8cb86882b45cffc1002d0d2a81f28de34.zip |
AVALANCHE: Introduce AvalancheEngine::getEvent().
-rw-r--r-- | engines/avalanche/avalanche.cpp | 4 | ||||
-rw-r--r-- | engines/avalanche/avalanche.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index 35693ed200..922f701981 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -143,6 +143,10 @@ void AvalancheEngine::updateEvents() { } } +bool AvalancheEngine::getEvent(Common::Event &event) { + return _eventMan->pollEvent(event); +} + diff --git a/engines/avalanche/avalanche.h b/engines/avalanche/avalanche.h index 94ac6afe42..8ce73120dc 100644 --- a/engines/avalanche/avalanche.h +++ b/engines/avalanche/avalanche.h @@ -111,6 +111,8 @@ public: void updateEvents(); + bool getEvent(Common::Event &event); // A warpper around _eventMan->pollEvent(), se we can use it in Scrolls::normscroll() for example. + protected: // Engine APIs Common::Error run(); |