Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    redkenrok

    love-touch

    redkenrok/love-touch
    Design
    2 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Provides an interface to touch-screen presses. Use this skill when working with touch operations, multi-touch gestures, touch events, or any touch-related operations in LÖVE games.

    SKILL.md

    When to use this skill

    Provides an interface to touch-screen presses. Use this skill when working with touch operations, multi-touch gestures, touch events, or any touch-related operations in LÖVE games.

    Common use cases

    • Handling touch screen input
    • Implementing multi-touch gestures
    • Working with touch-based game controls
    • Managing touch events and callbacks
    • Supporting mobile touch interfaces

    Functions

    • love.touch.getPosition(id: light userdata) -> x: number, y: number: Gets the current position of the specified touch-press, in pixels.
    • love.touch.getPressure(id: light userdata) -> pressure: number: Gets the current pressure of the specified touch-press.
    • love.touch.getTouches() -> touches: table: Gets a list of all active touch-presses.

    Examples

    Handling touch input

    function love.touchpressed(id, x, y, dx, dy, pressure)
      -- Store touch position
      touches[id] = {x = x, y = y, pressure = pressure}
    
      -- Handle touch at position (x, y)
      handleTouchAt(x, y)
    end
    

    Multi-touch handling

    function love.touchmoved(id, x, y, dx, dy, pressure)
      if touches[id] then
        -- Update touch position
        touches[id].x = x
        touches[id].y = y
    
        -- Handle drag gesture
        handleDrag(id, dx, dy)
      end
    end
    
    function love.touchreleased(id, x, y, dx, dy, pressure)
      -- Remove touch
      touches[id] = nil
    end
    

    Best practices

    • Support both touch and mouse input for cross-platform compatibility
    • Handle multi-touch gestures appropriately
    • Consider touch interface design for mobile devices
    • Test touch input on target platforms
    • Be mindful of touch accuracy and precision

    Platform compatibility

    • Desktop (Windows, macOS, Linux): Touch support on touchscreen devices
    • Mobile (iOS, Android): Full multi-touch support
    • Web: Browser-based touch support
    Recommended Servers
    Browser tool
    Browser tool
    Attio
    Attio
    Svelte
    Svelte
    Repository
    redkenrok/skills
    Files