code: def get_events(maximum=10):
      
      events = []
      for ev in range(0, maximum):
          try:
              if CONTROLLER.queue.empty():
                  break
              else:
                  events.append(CONTROLLER.queue.get_nowait())
          except NameError:
              print('PyMLGame is not initialized correctly. Use pymlgame.init() first.')
              events = False
              break
      return events
docs: Get all events since the last time you asked for them. You can define a maximum which is 10 by default.
  
      :param maximum: Maximum number of events
      :type maximum: int
      :return: List of events
      :rtype: list