TouchesIterator

ceramic.TouchesIterator (Class)

Iterator for the Touches collection.

TouchesIterator enables for-in loop iteration over active touch points. It automatically skips null entries in the underlying IntMap for efficient iteration over only valid touches.

This iterator is created automatically when using for-in loops with a Touches collection and should not be instantiated directly.

Instance Members

hasNext(): Bool

Checks if there are more touches to iterate over. Automatically skips null entries in the collection.

Returns Description
Bool True if there are more touches available

Returns the next touch in the iteration.

Returns Description
Touch The next Touch object

Private Members

intMap: IntMap<Touch>

i: Int

len: Int

new(intMap: IntMap<Touch>): Void
Name Type
intMap IntMap<Touch>