diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7160b92..092ed34 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,7 @@ - + @@ -456,16 +456,6 @@ - - - - - - - - - - @@ -474,5 +464,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/main.py b/main.py index df08aee..24ae181 100644 --- a/main.py +++ b/main.py @@ -40,13 +40,18 @@ def main(): clock.tick(25) for event in pygame.event.get(): if event.type == pygame.QUIT: + print('quit event') running = False dict = jstick.handle() + print('joystick handled') list.set_dict(dict) all_sprites.update() + print('updating sprites') update_rects = all_sprites.draw(screen.screen) + print('drawing sprites') screen.refresh(rectangles= update_rects) + print('refreshing screen') pygame.quit()