FakeXrExtensions.FakeInputEvent


class FakeXrExtensions.FakeInputEvent


Fake input event.

Summary

Nested types

Fake hit info.

Public constructors

Public functions

InputEvent.HitInfo?

Info about the first scene node (closest to the ray origin) that was hit by the input ray, if any.

InputEvent.HitInfo?

Info about the second scene node from the same task that was hit, if any.

Unit

Public constructors

FakeInputEvent

Added in 1.0.0-alpha01
FakeInputEvent()

Public functions

getHitInfo

Added in 1.0.0-alpha01
fun getHitInfo(): InputEvent.HitInfo?

Info about the first scene node (closest to the ray origin) that was hit by the input ray, if any. This will be null if no node was hit. Note that the hit node remains the same during an ongoing DOWN -> MOVE -> UP action, even if the pointer stops hitting the node during the action.

getSecondaryHitInfo

Added in 1.0.0-alpha01
fun getSecondaryHitInfo(): InputEvent.HitInfo?

Info about the second scene node from the same task that was hit, if any.

Public properties

action

Added in 1.0.0-alpha01
val actionInt

direction

Added in 1.0.0-alpha01
var directionVec3!

dispatchFlags

Added in 1.0.0-alpha01
var dispatchFlagsInt

origin

Added in 1.0.0-alpha01
var originVec3!

pointerType

Added in 1.0.0-alpha01
val pointerTypeInt

source

Added in 1.0.0-alpha01
val sourceInt

timestamp

Added in 1.0.0-alpha01
var timestampLong