"""macrolib - cross-platform helpers shared by the game macros. Platform-specific bits (mouse/keyboard input, OCR and screen capture) are abstracted here so a macro only has to deal with game logic. The public submodules are: macrolib.screen - screen capture (mss, or grim/screencast/spectacle on Wayland) macrolib.ocr - text recognition (Windows OCR / Apple Vision / RapidOCR) macrolib.input - mouse input and window focus (SendInput / Quartz / uinput) macrolib.hotkeys - global function-key hotkeys (evdev on Linux, pynput elsewhere) """ from . import hotkeys, input, ocr, screen __all__ = ["hotkeys", "input", "ocr", "screen"] try: from importlib.metadata import version as _dist_version __version__ = _dist_version("game-macros") except Exception: # not installed (e.g. running straight from the source tree) __version__ = "0.1.0"