InputEvent.Action


object InputEvent.Action


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

Summary

Constants

const Int

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

const Int

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

const Int

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

const Int

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

const Int

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

const Int

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

const Int

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

Constants

ACTION_CANCEL

Added in 1.0.0-alpha05
const val ACTION_CANCEL = 3: Int

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
const val ACTION_DOWN = 0: Int

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

ACTION_HOVER_ENTER

Added in 1.0.0-alpha05
const val ACTION_HOVER_ENTER = 5: Int

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
const val ACTION_HOVER_EXIT = 6: Int

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
const val ACTION_HOVER_MOVE = 4: Int

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
const val ACTION_MOVE = 2: Int

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
const val ACTION_UP = 1: Int

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