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