Opening the book…
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.
This page titled 8.12: The Event Handling Loop was last modified on Mon, 18 May 2020 08:25:50 GMT and is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Al Sweigart via source content that was edited to the style and standards of the LibreTexts platform.
The book could not be loaded just now.