Strata - v1.4.10
    Preparing search index...

    Interface InputEvent

    Unified input event emitted by controls.

    interface InputEvent {
        axis: InputAxis;
        force: number;
        timestamp: number;
        type: "activate" | "deactivate" | "axisChange" | "press" | "release";
        worldPosition: Vector3;
    }
    Index

    Properties

    axis: InputAxis

    Current axis values at the time of the event.

    force: number

    Normalized force/pressure (0-1). Used for pressure plates and analog buttons.

    timestamp: number

    Millisecond timestamp of the event.

    type: "activate" | "deactivate" | "axisChange" | "press" | "release"

    Event type indicating the interaction phase.

    worldPosition: Vector3

    3D world position of the control when the event was emitted.