What problem does it solve?
Simulate mouse input in Unity PlayMode so tests and automation can trigger game logic that reads the New Input System (for example, Mouse.current.leftButton.wasPressedThisFrame) without a physical user.
Core Features & Use Cases
- Click and LongPress: Inject left/right/middle button presses at specific screen coordinates to trigger gameplay actions like attacks, block placement, or UI interactions that rely on Input System button events.
- MoveDelta and SmoothDelta: Inject instantaneous or smoothly interpolated mouse movement deltas for FPS camera control and automated camera pans.
- Scroll: Inject scroll wheel input for hotbar switching, zooming, or other scroll-driven mechanics.
- Practical workflow: Ensure Unity is in PlayMode, determine target screen coordinates (use a screenshot to find them), run the appropriate simulate-mouse-input action, then capture a verification screenshot.
Quick Start
Invoke uloop simulate-mouse-input with an action (e.g., Click or MoveDelta) and the appropriate parameters such as --x --y or --delta-x to inject the desired mouse event into the running Unity PlayMode.