def processEvents()

in jsuarez/tools/MapMaker.py [0:0]


   def processEvents(self, events):
      for e in events:
         if e.type == pygame.QUIT:
            self.quit()
         elif e.type == pygame.MOUSEBUTTONDOWN:
            self.mouseDown(e.button)
         elif e.type == pygame.MOUSEBUTTONUP:
            self.mouseUp(e.button)
         elif e.type == pygame.KEYUP:
            print('KeyUp')
            self.keyUp(e.key)