import types
import pygame
from StringIO import StringIO
-from log import console, eventLog, hiddenEvents, pprinters
+from log import console, eventLogger, hiddenEvents, pprinters
class _EventDispatcher :
def __init__(self) :
for event in events :
listeners = self.registry.get(event.type, {})
if not hiddenEvents.has_key(event.type):
- #if listeners and not hiddenEvents.has_key(event.type) :
- eventLog.info(pprinters[event.type](event))
+ eventLogger.info(event)
for listener in listeners.keys() :
listener(event)