@twinfinity/core
    Preparing search index...

    Class TwinfinityTargetCameraMouseZoomInput<TCamera>

    Manage the mouse inputs to control the movement of a PivotTargetCamera.

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    camera: TCamera

    Defines the camera the input is attached to.

    wheelPrecision: number = 180.0

    Gets or Set the mouse wheel precision or how fast is the camera zooming.

    Accessors

    • get isZooming(): boolean

      Checks if user is zooming.

      Returns boolean

    Methods

    • Attach the input controls to a specific dom element to get the input from.

      Parameters

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

      Returns void

    • Detaches the current controls from the specified DOM element.

      Returns void

    • Gets the class name of the current input.

      Returns string

      the class name

    • Get the friendly name associated with the input class.

      Returns string

      the input friendly name