@twinfinity/core
    Preparing search index...

    Class TwinfinityTargetCameraKeyboardInput<TCamera>

    Manage the keyboard inputs to control the movement of a TargetCamera.

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    camera: TCamera

    Defines the camera the input is attached to.

    keysDown: number[] = ...

    Gets or Set the list of keyboard keys used to control the backward move of the camera.

    keysLeft: number[] = ...

    Gets or Set the list of keyboard keys used to control the left strafe move of the camera.

    keysRight: number[] = ...

    Gets or Set the list of keyboard keys used to control the right strafe move of the camera.

    keysUp: number[] = ...

    Gets or Set the list of keyboard keys used to control the forward move of the camera.

    Methods

    • 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.

      Returns void

    • Detach the current controls from the specified dom element.

      Returns void

    • Gets the class name of the current intput.

      Returns string

      the class name

    • Get the friendly name associated with the input class.

      Returns string

      the input friendly name