add timeout parameter while waiting for events

Issue #202 new
metagriffin created an issue

i think it would be great if the wait functions (pygame.event.wait and pygame.fastevent.wait) could accept a timeout parameter -- this would alleviate the need to duplicate a lot of code that uses the poll/sleep approach to reduce CPU consumption.

Comments (1)

  1. Log in to comment