API reference
API reference
Select your platform
No SDKs available
No versions available

InputStateMachine Class

Modifiers: final
State machine that manages VR controller input states and transitions for entity interaction. Tracks per-entity HitState based on ray intersection results and button presses, dispatching callbacks (onHoverStart, onPress, onRelease) to the Scene. Evaluates multiple state transitions per frame to reach a steady state, handling edge cases like pressing while entering and dragging outside the target.

Signature

class InputStateMachine

Constructors

InputStateMachine ()
Signature
constructor()

Properties

scene : Scene?
[Get][Set]
Signature
var scene: Scene?

Methods

updateState ( intersection , controllerEntity , buttons , changed , selectButtonsMask )
Signature
fun updateState(intersection: HitInfo?, controllerEntity: Entity, buttons: Int, changed: Int, selectButtonsMask: Int)
Parameters
intersection: HitInfo?
controllerEntity: Entity
buttons: Int
changed: Int
selectButtonsMask: Int