@twinfinity/core
    Preparing search index...

    Class TwinfinityTargetCameraMousePanInput<TCamera>

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

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    buttons: number[] = ...

    Defines the buttons associated with the input to handle camera pan. Middle mouse button is used as default (often invoked by pressing scroll wheel). 0: No button or un-initialized 1: Primary button (usually the left button) 2: Secondary button (usually the right button) 4: Auxiliary button (usually the mouse wheel button or middle button) 8: 4th button (typically the "Browser Back" button) 16 : 5th button (typically the "Browser Forward" button) A button number can represent multiple buttons. For example button left and right is represented by 1 + 2 = 3.

    camera: TCamera

    Defines the camera the input is attached to.

    Accessors

    • get isPanning(): boolean

      Checks if user is panning.

      Returns boolean

    Methods

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

      Parameters

      Returns void

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