setInputAction

fun setInputAction(action: Any, type: ScreenSpaceEventType, modifier: KeyboardEventModifier? = 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.

modifier

A KeyboardEventModifier key that is held when a type event occurs.

See also