From 8e72231332e0b7526a19a306647001a933086678 Mon Sep 17 00:00:00 2001 From: nickedyer Date: Sun, 19 Feb 2023 20:50:19 -0500 Subject: [PATCH] hide mouse, changed dial speed --- thermopi/screen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thermopi/screen.py b/thermopi/screen.py index c443c2a..23b7dec 100644 --- a/thermopi/screen.py +++ b/thermopi/screen.py @@ -64,10 +64,10 @@ def main(windowed_mode): prev_mouse_pos = (0, 0) mouse_pos = (0, 0) get_mouse_speed = False + pygame.mouse.set_visible(False) + while running: clock.tick(FPS) - - # pygame.mouse.set_visible(False) prev_mouse_pos = mouse_pos mouse_pos = pygame.mouse.get_pos() @@ -90,7 +90,7 @@ def main(windowed_mode): diff_angle = math.atan2(mouse_diff[0], mouse_diff[1]) speed_coeff = math.cos((mouse_angle - (0.5 * PI)) - diff_angle) final_speed = movement_speed * speed_coeff - dial.move_dial(final_speed / -5000.0) + dial.move_dial(final_speed / -3000.0) pygame.quit()