InputEvent.Action


public final class InputEvent.Action


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

Summary

Public fields

static final @NonNull InputEvent.Action

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

static final @NonNull InputEvent.Action

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

static final @NonNull InputEvent.Action

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

static final @NonNull InputEvent.Action

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

static final @NonNull InputEvent.Action

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

static final @NonNull InputEvent.Action

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

static final @NonNull InputEvent.Action

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

Public methods

@NonNull String

Public fields

CANCEL

public static final @NonNull InputEvent.Action CANCEL

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

public static final @NonNull InputEvent.Action DOWN

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

HOVER_ENTER

public static final @NonNull InputEvent.Action HOVER_ENTER

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

public static final @NonNull InputEvent.Action HOVER_EXIT

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

public static final @NonNull InputEvent.Action HOVER_MOVE

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

public static final @NonNull InputEvent.Action MOVE

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

public static final @NonNull InputEvent.Action UP

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 methods

toString

public @NonNull String toString()