8.12: The Event Handling Loop
- Page ID
- 14587
for event in pygame.event.get(): # event handling loop if event.type == KEYUP:
The event handling loop takes care of when the player rotates the falling piece, moves the falling piece, or pauses the game.