love-touch
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.