removed indicator, reworked click logic
This commit is contained in:
parent
1d7947803b
commit
d9c4401f43
@ -79,6 +79,7 @@ def main(windowed_mode):
|
||||
running = False
|
||||
if event.type == pygame.MOUSEBUTTONDOWN:
|
||||
get_mouse_speed = True
|
||||
mouse_pos = pygame.mouse.get_pos()
|
||||
prev_mouse_pos = mouse_pos
|
||||
if event.type == pygame.MOUSEBUTTONUP:
|
||||
get_mouse_speed = False
|
||||
@ -92,8 +93,6 @@ def main(windowed_mode):
|
||||
speed_coeff = math.cos((mouse_angle - (0.5 * PI)) - diff_angle)
|
||||
final_speed = movement_speed * speed_coeff
|
||||
dial.move_dial(final_speed / -3000.0)
|
||||
pygame.draw.circle(window, (0, 255, 0), (10, 10), 15)
|
||||
pygame.display.flip()
|
||||
|
||||
|
||||
pygame.quit()
|
||||
|
Loading…
Reference in New Issue
Block a user