Touches

ceramic.Touches (Abstract)

A collection of active touch points for multi-touch handling.

Touches provides an efficient way to access and iterate over all current touch points on the screen. It's implemented as an abstract over IntMap for performance, mapping touch indices to Touch objects.

This collection is typically accessed through screen.touches and is automatically updated by the input system.

Example usage:

// Access a specific touch by index
var touch = screen.touches.get(0);

// Iterate over all active touches
for (touch in screen.touches) {
    trace('Touch ${touch.index} at ${touch.x}, ${touch.y}');
}