InputEvent.Action


class InputEvent.Action


Specifies the action (e.g. down, up, move, etc.) of the input event.

Summary

Public companion properties

InputEvent.Action

While the primary action button or gesture was held, the pointer was disabled.

InputEvent.Action

The primary action button or gesture was just pressed / started.

InputEvent.Action

The primary action button or gesture is not pressed, and the pointer ray started to hit a new node.

InputEvent.Action

The primary action button or gesture is not pressed, and the pointer ray stopped hitting the node that it was previously hitting.

InputEvent.Action

The primary action button or gesture is not pressed, and the pointer ray continued to hit the same node.

InputEvent.Action

The primary action button or gesture was pressed/active in the previous event, and is still pressed/active.

InputEvent.Action

The primary action button or gesture was just released / stopped.

Public functions

open String

Public companion properties

CANCEL

val CANCELInputEvent.Action

While the primary action button or gesture was held, the pointer was disabled. This happens if you are using controllers and the battery runs out, or if you are using a source that transitions to a new pointer type, eg Source.GAZE_AND_GESTURE.

DOWN

val DOWNInputEvent.Action

The primary action button or gesture was just pressed / started.

HOVER_ENTER

val HOVER_ENTERInputEvent.Action

The primary action button or gesture is not pressed, and the pointer ray started to hit a new node. The hit info represents the node that is being hit (may be null if pointer capture is enabled).

Hover input events are never provided for sensitive source types.

HOVER_EXIT

val HOVER_EXITInputEvent.Action

The primary action button or gesture is not pressed, and the pointer ray stopped hitting the node that it was previously hitting. The hit info represents the node that was being hit (may be null if pointer capture is enabled).

Hover input events are never provided for sensitive source types.

HOVER_MOVE

val HOVER_MOVEInputEvent.Action

The primary action button or gesture is not pressed, and the pointer ray continued to hit the same node. The hit info represents the node that was hit (may be null if pointer capture is enabled).

Hover input events are never provided for sensitive source types.

MOVE

val MOVEInputEvent.Action

The primary action button or gesture was pressed/active in the previous event, and is still pressed/active. The hit info represents the node that was originally hit (ie, as provided in the Action.DOWN event). The hit position may be null if the pointer is no longer hitting that node.

UP

val UPInputEvent.Action

The primary action button or gesture was just released / stopped. The hit info represents the node that was originally hit (ie, as provided in the Action.DOWN event).

Public functions

toString

open fun toString(): String