[Scummvm-cvs-logs] SF.net SVN: scummvm:[42729] scummvm/trunk

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jul 25 03:01:41 CEST 2009


Revision: 42729
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42729&view=rev
Author:   lordhoto
Date:     2009-07-25 01:01:41 +0000 (Sat, 25 Jul 2009)

Log Message:
-----------
Add enum which marks global priorites of the EventManager event dispatcher.

Modified Paths:
--------------
    scummvm/trunk/backends/events/default/default-events.cpp
    scummvm/trunk/common/events.h

Modified: scummvm/trunk/backends/events/default/default-events.cpp
===================================================================
--- scummvm/trunk/backends/events/default/default-events.cpp	2009-07-25 01:01:22 UTC (rev 42728)
+++ scummvm/trunk/backends/events/default/default-events.cpp	2009-07-25 01:01:41 UTC (rev 42729)
@@ -104,7 +104,7 @@
 	_dispatcher.registerSource(boss, false);
 	_dispatcher.registerSource(&_artificialEventSource, false);
 
-	_dispatcher.registerObserver(this, 0, false);
+	_dispatcher.registerObserver(this, kEventManPriority, false);
 
 	_recordFile = NULL;
 	_recordTimeFile = NULL;

Modified: scummvm/trunk/common/events.h
===================================================================
--- scummvm/trunk/common/events.h	2009-07-25 01:01:22 UTC (rev 42728)
+++ scummvm/trunk/common/events.h	2009-07-25 01:01:41 UTC (rev 42729)
@@ -396,6 +396,14 @@
 	virtual Common::Keymapper *getKeymapper() = 0;
 #endif
 
+	enum {
+		/**
+		 * Priority of the event manager, for now it's lowest since it eats
+		 * *all* events, we might to change that in the future though.
+		 */
+		kEventManPriority = 0
+	};
+
 	/**
 	 * Returns the underlying EventDispatcher.
 	 */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list