uloop-simulate-mouse-input

Community

Inject simulated mouse events in PlayMode

Authorhatayama
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: uloop-simulate-mouse-input
Download link: https://github.com/hatayama/unity-cli-loop/archive/main.zip#uloop-simulate-mouse-input

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.