title: How do I respond to mouse clicks on sprites in PyGame?
body: <p>What is the canonical way of making your sprites respond to mouse clicks in PyGame ? </p>
  
  <p>Here's something simple, in my event loop:</p>
  
  <pre><code>for event in pygame.event.get():
      if event.type == pygame.QUIT:
          exit_game()
      [...]
      elif (  event.type == pygame.MOUSEBUTTONDOWN and
              pygame.mouse.get_pressed()[0]):
          for sprite in sprites:
              sprite.mouse_click(pygame.mouse.get_pos())
  </code></pre>
  
  <p>Some questions about it:</p>
  
  <ol>
  <li>Is this the best way of responding to mouse clicks ? </li>
  <li>What if the mouse stays pressed on the sprite for some time ? How do I make a single event out of it ?</li>
  <li>Is this a reasonable way to notify all my sprites of the click ?</li>
  </ol>
  
  <p>Thanks in advance</p>