API

Class FlyCameraInputsManager

Default Inputs manager for the FlyCamera. It groups all the default supported inputs for ease of use.

Hierarchy (View Summary)

Index

Defines the list of inputs attached to the camera.

attachedToElement: boolean = false

Defines the dom element the camera is collecting inputs from. This is null if the controls have not been attached.

camera: FlyCamera

Defined the camera the input manager belongs to.

checkInputs: () => void

Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.

noPreventDefault: boolean

Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)

  • Serialize the current input manager attached to a camera. This ensures than once parsed, the input associated to the camera will be identical to the current ones

    Parameters

    • serializedCamera: any

      Defines the camera serialization JSON the input serialization should write to

    Returns void