with this small test code
gameDisplay = pygame.display.set_mode((100, 100))
running = True
events = pygame.event.get(eventtype=[pygame.KEYDOWN,pygame.KEYUP], pump=False)
for ev in events:
events2 = pygame.event.get()
print('non important events')
for ev in events2:
if ev.type == pygame.QUIT:
running = False
If pump is `False`, then the first event.get returns nothing, and the second event.get return all events.
If pump is `True` then the first event.get returns the selected event types, and event.get returns the remaining events. This is what I wanted but I understood that I was going to get this behavior setting `pump = False`.
What is the use of setting pump to False?