Yes, pynput seems to be a simple mouse event-catcher.
I tested it out in a very simple program:
While the loop normally runs continuously, I need the option to hold the loop by its run conditions and advance one round per mouse click.
I tested it out in a very simple program:
from pynput import mouse def on_click(x, y, button, pressed): print(button, pressed, listener) listener = mouse.Listener(on_click=on_click) listener.start()I will need more advice to understand how to embed the mouse click event inside my while loop.
While the loop normally runs continuously, I need the option to hold the loop by its run conditions and advance one round per mouse click.