ScreenSpaceEventHandler
Handles user input events. Custom functions can be added to be executed on when the user enters input.
Parameters
element
The element to add events to. Default value - document
See also
Types
Link copied to clipboard
An Event that starts at one position and ends at another.
Link copied to clipboard
Link copied to clipboard
An Event that occurs at a single position on screen.
Link copied to clipboard
Link copied to clipboard
An Event that occurs at a two positions on screen.
Link copied to clipboard
Link copied to clipboard
An Event that starts at a two positions on screen and moves to two other positions.
Link copied to clipboard
typealias TwoPointMotionEventCallback = (event: ScreenSpaceEventHandler.TwoPointMotionEvent) -> Unit
Link copied to clipboard
Functions
Link copied to clipboard
external fun getInputAction(type: ScreenSpaceEventType, modifiers: JsAny? = definedExternally): JsAny
Returns the function to be executed on an input event.
Link copied to clipboard
Returns true if this object was destroyed; otherwise, false.
Link copied to clipboard
Removes the function to be executed on an input event.
Link copied to clipboard
external fun setInputAction(action: JsAny, type: ScreenSpaceEventType, modifiers: JsAny? = definedExternally)
Set a function to be executed on an input event.