setInputAction

fun setInputAction(action: JsAny, type: ScreenSpaceEventType, modifiers: JsAny? = definedExternally)(source)

Set a function to be executed on an input event.

Parameters

action

Function to be executed when the input event occurs.

type

The ScreenSpaceEventType of input event.

modifiers

The KeyboardEventModifier keys that are held when a type event occurs.

See also