love-mouse

Manage mouse input and simulate button presses and movement in Roblox games.

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/RedKenrok/skills --skill love-mouse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: love-mouse
Source: https://github.com/RedKenrok/skills/tree/main/skills/love-mouse
Command: npx skills add https://github.com/RedKenrok/skills --skill love-mouse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides an API to read and control the user's mouse within LÖVE games, enabling consistent input handling across platforms.

Core Features & Use Cases

  • Position tracking: read mouse x/y coordinates and support relative mode for unrestricted movement.
  • Cursor management: show, hide, and assign custom cursors; retrieve system cursors.
  • Input events: detect button presses and motions for menus, gameplay, and drag-and-drop interactions.
  • Cross-platform consistency: works across desktop environments and provides mouse input behavior that works similarly on target devices.
  • Use Case: Create a game menu where hover highlights are driven by the current mouse position and a custom cursor is rendered.

Quick Start

Start by querying the mouse position in Love.load and Love.update, then render a custom cursor image at those coordinates. For example: hide the default cursor with love.mouse.setVisible(false), read love.mouse.getPosition(), and draw your own sprite at the returned x, y values.

Frequently Asked Questions about love-mouse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the mouse position in LÖVE for a custom game cursor?

To get the mouse position in LÖVE, use the API to read x/y coordinates, hide the default cursor with setVisible, and draw your custom sprite at the returned values. This enables precise cursor rendering for menus and interactive elements.

How does relative mouse mode work in LÖVE2D for unrestricted camera movement?

Relative mouse mode in LÖVE2D handles unrestricted movement by providing continuous position deltas without cursor confinement, enabling precise gameplay interactions like first-person camera controls.

Can I use custom and system cursors for UI menus in LÖVE?

Yes, you can assign custom cursors and retrieve standard system cursors within LÖVE. This allows consistent UI menu interactions across different desktop environments and platforms.

What is the best way to detect mouse button presses and motion for drag-and-drop in LÖVE?

The best way to detect drag-and-drop interactions in LÖVE is using the mouse API to capture button presses and motion events, enabling consistent input handling for gameplay and interactive elements.

Does mouse input handling in LÖVE work consistently across different desktop platforms?

Yes, mouse input handling in LÖVE works consistently across desktop environments, providing similar position tracking, visibility controls, and cursor state behaviors on target devices.