From 532306f8cb86882b45cffc1002d0d2a81f28de34 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 6 Aug 2013 01:13:25 +0200 Subject: AVALANCHE: Introduce AvalancheEngine::getEvent(). --- engines/avalanche/avalanche.cpp | 4 ++++ engines/avalanche/avalanche.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'engines/avalanche') 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(); -- cgit v1.2.3