hira1010/2nd-brain/uloop-simulate-mouse-input

Claude Code and agent skill by hira1010/2nd-brain

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Simulate Mouse.current input in PlayMode through Unity Input System. Use for gameplay clicks, mouse delta, or scroll; use simulate-mouse-ui for EventSystem UI elements.

Install

npx vskill@latest install hira1010/2nd-brain/uloop-simulate-mouse-input

SKILL.md

The same SKILL.md was published earlier as styly-dev/styly-netsync/uloop-simulate-mouse-input.

Task

Simulate mouse input via Input System in Unity PlayMode: $ARGUMENTS

Workflow

  1. Ensure Unity is in PlayMode (use npx --yes uloop-cli@2.2.0 control-play-mode --action Play if not)
  2. For Click/LongPress: determine the target screen position (use npx --yes uloop-cli@2.2.0 screenshot to find coordinates)
  3. Execute the appropriate npx --yes uloop-cli@2.2.0 simulate-mouse-input command
  4. Take a screenshot to verify the result: npx --yes uloop-cli@2.2.0 screenshot --capture-mode rendering
  5. Report what happened

Tool Reference

bash
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action <action> [options]
Parameters
ParameterTypeDefaultDescription
--actionenumClickClick, LongPress, MoveDelta, SmoothDelta, Scroll
--xnumber0Target X position (origin: top-left). Used by Click and LongPress.
--ynumber0Target Y position (origin: top-left). Used by Click and LongPress.
--buttonenumLeftMouse button: Left, Right, Middle. Used by Click and LongPress.
--durationnumber0Hold duration for LongPress, or interpolation duration for SmoothDelta (seconds). For Click, 0 = one-shot tap.
--delta-xnumber0Delta X in pixels for MoveDelta/SmoothDelta. Positive = right.
--delta-ynumber0Delta Y in pixels for MoveDelta/SmoothDelta. Positive = up.
--scroll-xnumber0Horizontal scroll delta for Scroll action.
--scroll-ynumber0Vertical scroll delta for Scroll action. Typically 120 per notch.
Actions
ActionWhat it injectsDescription
ClickMouse.current button press → releaseInject a button click so game logic detects wasPressedThisFrame
LongPressMouse.current button press → hold → releaseHold a button for --duration seconds
MoveDeltaMouse.current.deltaInject mouse movement delta one-shot (e.g. for FPS camera look)
SmoothDeltaMouse.current.delta (per-frame)Inject mouse delta smoothly over --duration seconds (human-like camera pan)
ScrollMouse.current.scrollInject scroll wheel input (e.g. for hotbar or zoom)
Global Options (optional)
OptionDescription
--project-path <path>Optional. Use only when the target Unity project is not the current directory.

When to use this vs simulate-mouse-ui

ScenarioTool
Click a Unity UI Button (IPointerClickHandler)simulate-mouse-ui
Destroy a block in Minecraft (reads Mouse.current.leftButton)simulate-mouse-input when the project uses the New Input System
Place a block with right-clicksimulate-mouse-input --button Right when the project uses the New Input System
Drag a UI slidersimulate-mouse-ui --action Drag
Look around with mouse (FPS camera)simulate-mouse-input --action MoveDelta when the project uses the New Input System
Scroll hotbar slotssimulate-mouse-input --action Scroll when the project uses the New Input System

Examples

bash
# Left-click at screen center (for game logic)
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action Click --x 400 --y 300
# Right-click at screen center (e.g. place block)
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action Click --x 400 --y 300 --button Right
# Hold left-click for 2 seconds (e.g. mine block)
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action LongPress --x 400 --y 300 --duration 2.0
# Look right (FPS camera)
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action MoveDelta --delta-x 100 --delta-y 0
# Scroll up (e.g. previous hotbar slot)
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action Scroll --scroll-y 120
# Scroll down (e.g. next hotbar slot)
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action Scroll --scroll-y -120
# Smooth camera pan right over 0.5 seconds
npx --yes uloop-cli@2.2.0 simulate-mouse-input --action SmoothDelta --delta-x 300 --delta-y 0 --duration 0.5

Prerequisites

  • Unity must be in PlayMode
  • Input System package must be installed (com.unity.inputsystem)
  • Game code must read input via Input System API (e.g. Mouse.current.leftButton.wasPressedThisFrame)
  • Use this only when the project already uses the New Input System.

Output

Returns JSON with:

  • Success: Whether the operation succeeded
  • Message: Status message
  • Action: Echoes which action was executed (Click, LongPress, MoveDelta, SmoothDelta, or Scroll)
  • Button: Which button was used (nullable string; populated for Click / LongPress, null otherwise)
  • PositionX: Target X coordinate (nullable float; populated for Click / LongPress)
  • PositionY: Target Y coordinate (nullable float; populated for Click / LongPress)

These are the only six fields. There is no DeltaX, DeltaY, ScrollX, ScrollY, Duration, or hit-element field in the response — only the issued action, button, and target position are echoed back. Verify visual outcome with a follow-up screenshot.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hira1010/2nd-brain/uloop-simulate-mouse-input/badge)](https://verified-skill.com/skills/hira1010/2nd-brain/uloop-simulate-mouse-input)

Something wrong with this skill or its page? Tell us.