diff options
| author | uruk | 2013-07-24 12:55:01 +0200 | 
|---|---|---|
| committer | uruk | 2013-07-24 12:55:01 +0200 | 
| commit | 5dc6abe87b174673304826c00c05e54eab53625f (patch) | |
| tree | 80539308c77f90722bdf13b7e9c9c4d1b0081f0f /engines/avalanche/avalanche.cpp | |
| parent | 9e15eee97059c5baf5db7ad197cbd1f577acad5f (diff) | |
| download | scummvm-rg350-5dc6abe87b174673304826c00c05e54eab53625f.tar.gz scummvm-rg350-5dc6abe87b174673304826c00c05e54eab53625f.tar.bz2 scummvm-rg350-5dc6abe87b174673304826c00c05e54eab53625f.zip  | |
AVALANCHE: Add event handling.
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
| -rw-r--r-- | engines/avalanche/avalanche.cpp | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index 88e6e0edd1..0c04e6b8e7 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -26,7 +26,6 @@   */  #include "avalanche/avalanche.h" -#include "avalanche/avalot.h"  #include "common/system.h"  #include "common/random.h" @@ -103,7 +102,16 @@ namespace Avalanche {  		//	_sound->syncVolume();  	} -	 +	void AvalancheEngine::updateEvents() { +		Common::Event event; + +		while (_eventMan->pollEvent(event)) { +			switch (event.type) { +			case Common::EVENT_KEYDOWN: +				_avalot.handleKeyDown(event); +			} +		} +	} @@ -255,7 +263,7 @@ namespace Avalanche {  		_graph.init(); - +		  		// From bootstrp: @@ -270,7 +278,7 @@ namespace Avalanche {  		if (!zoomy)  			call_menu();    /* Not run when zoomy. */ -		 +  		do {  			run_avalot();  | 
