|
24 | 24 |
|
25 | 25 | # Function |
26 | 26 | global size_automation, controller, randomwalld, ballcash, mouse, slowballs, step, ctrlswap |
27 | | -global circle_mouse_active, circle_mouse_speed, circle_mouse_radius |
| 27 | +global circle_mouse_active, circle_mouse_speed, circle_mouse_radius, circle_mouse_direction |
28 | 28 | step = 20 |
29 | 29 | s = 25 #ball spacing in px |
30 | 30 | ctrlswap = False # When True, use Cmd (macOS) instead of Ctrl for macros |
31 | 31 | circle_mouse_active = False |
32 | 32 | circle_mouse_speed = 0.02 # Time delay between updates (lower = faster) |
33 | 33 | circle_mouse_radius = 100 # Radius in pixels |
| 34 | +circle_mouse_direction = 1 # 1 for clockwise, -1 for counterclockwise |
34 | 35 | size_automation = False |
35 | 36 | engispamming = False |
36 | 37 | engispam_thread = None |
@@ -289,8 +290,8 @@ def brain_damage(): |
289 | 290 | time.sleep(0.02) # Add a small delay to prevent locking up your systema |
290 | 291 |
|
291 | 292 | def circle_mouse(): |
292 | | - """Move mouse in circles around a center point""" |
293 | | - global circle_mouse_active, circle_mouse_speed, circle_mouse_radius |
| 293 | + """Move mouse in circles around a center point. Press '\\' to reverse direction.""" |
| 294 | + global circle_mouse_active, circle_mouse_speed, circle_mouse_radius, circle_mouse_direction |
294 | 295 | global controllednuke_points, controllednuke_active |
295 | 296 | import math |
296 | 297 |
|
@@ -331,8 +332,8 @@ def temp_click_handler(x, y, button, pressed): |
331 | 332 |
|
332 | 333 | # Scale rotation step with radius for consistent arc length |
333 | 334 | # Larger radius = smaller angular increment for smooth motion |
334 | | - angle_step = 5.0 / max(circle_mouse_radius, 10) |
335 | | - angle += angle_step |
| 335 | + angle_step_base = 5.0 / max(circle_mouse_radius, 10) |
| 336 | + angle += circle_mouse_direction * angle_step_base |
336 | 337 | if angle >= 2 * math.pi: |
337 | 338 | angle = 0 |
338 | 339 |
|
@@ -756,10 +757,17 @@ def on_press(key): |
756 | 757 | if 'ctrl' in pressed_keys: |
757 | 758 | circle_mouse_active = not circle_mouse_active |
758 | 759 | if circle_mouse_active: |
| 760 | + circle_mouse_direction = 1 # reset to default on start |
759 | 761 | print(f"circle mouse on (radius: {circle_mouse_radius}, speed: {circle_mouse_speed})") |
760 | 762 | start_circle_mouse() |
761 | 763 | else: |
762 | 764 | print("circle mouse off") |
| 765 | + elif hasattr(key, 'char') and key.char and key.char=='\\': |
| 766 | + # Toggle direction of circle while active |
| 767 | + if circle_mouse_active: |
| 768 | + circle_mouse_direction *= -1 |
| 769 | + dir_text = 'clockwise' if circle_mouse_direction == 1 else 'counterclockwise' |
| 770 | + print(f"circle direction -> {dir_text}") |
763 | 771 | elif hasattr(key, 'char') and key.char and key.char=='k': |
764 | 772 | if 'ctrl' in pressed_keys: |
765 | 773 | controller.tap(Key.enter) |
|
0 commit comments