InputEvent.Action


public static class InputEvent.Action


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

Summary

Constants

static final int

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

static final int

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

static final int

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

static final int

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

static final int

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

static final int

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

static final int

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

Public fields

static @NonNull InputEvent.Action

Constants

ACTION_CANCEL

Added in 1.0.0-alpha05
public static final int ACTION_CANCEL = 3

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.SOURCE_GAZE_AND_GESTURE.

ACTION_DOWN

Added in 1.0.0-alpha05
public static final int ACTION_DOWN = 0

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

ACTION_HOVER_ENTER

Added in 1.0.0-alpha05
public static final int ACTION_HOVER_ENTER = 5

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.

ACTION_HOVER_EXIT

Added in 1.0.0-alpha05
public static final int ACTION_HOVER_EXIT = 6

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.

ACTION_HOVER_MOVE

Added in 1.0.0-alpha05
public static final int ACTION_HOVER_MOVE = 4

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.

ACTION_MOVE

Added in 1.0.0-alpha05
public static final int ACTION_MOVE = 2

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.ACTION_DOWN event). The hit position may be null if the pointer is no longer hitting that node.

ACTION_UP

Added in 1.0.0-alpha05
public static final int ACTION_UP = 1

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.ACTION_DOWN event).

Public fields

INSTANCE

Added in 1.0.0-alpha05
public static @NonNull InputEvent.Action INSTANCE