displayarray.input

Mouse Input

class mouse_loop(f, run_when_no_events=False)[source]

Run a function on mouse information that is received by the window, continuously in a new thread.

class MouseEvent(event, x, y, flags, param)[source]

Holds all the OpenCV mouse event information.

Key Input

class key_loop(f: Callable[[str], None], run_when_no_events=False)[source]

Run a function on mouse information that is received by the window, continuously in a new thread.