1. pygame
  2. pygame
  3. pygame
  4. Issues


Issue #202 new

add timeout parameter while waiting for events

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