@twinfinity/core
    Preparing search index...

    Class TwinfinityTargetCameraMouseRotationInput

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

    Implements

    Index

    Constructors

    Properties

    buttons: number[] = ...

    Defines the buttons associated with the input to handle camera move. Left mouse button is used as default for Rotation. 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: TargetCamera

    Defines the camera the input is attached to.

    onPointerMovedObservable: Observable<{ offsetX: number; offsetY: number }> = ...

    Observable for when a pointer move event occurs containing the move offset

    Accessors

    • get isRotating(): boolean

      Checks if user is rotating the camera.

      Returns boolean

    Methods

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

      Parameters

      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

    • Gets the friendly name associated with the input class.

      Returns string

      the input friendly name

    • Is called by JS contextmenu event. Override this method to provide functionality.

      Parameters

      • evt: PointerEvent

      Returns void