diff --git a/thermopi/screen.py b/thermopi/screen.py index 57874f3..7b22ec0 100644 --- a/thermopi/screen.py +++ b/thermopi/screen.py @@ -15,17 +15,19 @@ def main(windowed_mode): while running: clock.tick(60) - pygame.mouse.set_visible(False) + #pygame.mouse.set_visible(False) for event in pygame.event.get(): if event.type == pygame.QUIT: running = False - if event.type == pygame.MOUSEBUTTONDOWN: - running = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_ESCAPE: running = False + mouse_pos = pygame.mouse.get_pos() + window.fill((0, 0, 0)) + pygame.draw.line(window, (255, 255, 255), (720/2, 720/2), mouse_pos, 15) + pygame.display.flip() pygame.quit()