hide mouse, changed dial speed

This commit is contained in:
Nicholas Dyer 2023-02-19 20:50:19 -05:00
parent 3e5c5cc896
commit 8e72231332
No known key found for this signature in database
GPG Key ID: E4E6388793FA2105

View File

@ -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()