python - Pygame Help; mouse.get_pos() -


i testing things out in pygame. how come updates position of cursor

while 1:     pos = pygame.mouse.get_pos()     screen.fill(black)     screen.blit(ball,pos)     pygame.display.flip()     print pos     if pygame.event.get(27):         = "exit" 

while doesn't?

while 1:     pos = pygame.mouse.get_pos()     screen.fill(black)     screen.blit(ball,pos)     pygame.display.flip()     print pos     if pygame.event.get():         = "exit" 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -