title: Pygame Help; mouse.get_pos()
body: <p>I was testing things out in pygame. How come this constantly updates the position of my cursor</p>
  
  <pre><code>while 1:
      pos = pygame.mouse.get_pos()
      screen.fill(black)
      screen.blit(ball,pos)
      pygame.display.flip()
      print pos
      if pygame.event.get(27):
          a = "exit"
  </code></pre>
  
  <p>While this doesn't?</p>
  
  <pre><code>while 1:
      pos = pygame.mouse.get_pos()
      screen.fill(black)
      screen.blit(ball,pos)
      pygame.display.flip()
      print pos
      if pygame.event.get():
          a = "exit"
  </code></pre>