onTouchDown

inline fun <T : Actor> T.onTouchDown(crossinline listener: T.() -> Unit): InputListener

Attaches an InputListener to this actor.

Return

InputListener instance.

Parameters

listener

invoked each time this actor is touched. Consumes the Actor as this.