SpatialPointerInfo

@Stable
class SpatialPointerInfo(pointerInputChange: PointerInputChange, spaceExtraInfo: SpacePointerInfo?, entity: Entity? = null)

A spatial event data generated from an input.

Constructors

Link copied to clipboard
constructor(pointerInputChange: PointerInputChange, spaceExtraInfo: SpacePointerInfo?, entity: Entity? = null)

Properties

Link copied to clipboard

The pose of the input device at the time of the event.

Link copied to clipboard

The kind of interaction that is currently being performed.

Link copied to clipboard
val pointerId: PointerId

id of this pointer

Link copied to clipboard
val position3D: Offset3D

The 3D position of the pointer in the coordinate space of the view.

Link copied to clipboard
val pressed: Boolean

true if the pointer event is considered "pressed." For example, finger touching the screen or a mouse button is pressed pressed would be true.

Link copied to clipboard

The entity target for this touch, if one exists.

Link copied to clipboard
val uptimeMillis: Long

The time of the current pointer event, in milliseconds.

Link copied to clipboard
val x: Float

X coordinate of the pointer at view local

Link copied to clipboard
val y: Float

Y coordinate of the pointer at view local

Link copied to clipboard
val z: Float

Z coordinate of the pointer at view local

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun isDownEvent(): Boolean

For example, MotionEvent.ACTION_DOWN or MotionEvent.ACTION_POINTER_DOWN

Link copied to clipboard
fun isUpEvent(): Boolean

For example, MotionEvent.ACTION_UP or MotionEvent.ACTION_POINTER_UP

Link copied to clipboard
open override fun toString(): String