@twinfinity/core
    Preparing search index...

    Class TwinfinityCameraTouchInput

    Manages the touch inputs to control the movement of a PivotTargetCamera.

    Hierarchy

    • BaseCameraPointersInput
      • TwinfinityCameraTouchInput
    Index

    Constructors

    Properties

    Defines the camera the input is attached to.

    Methods

    • Returns void

    • Gets the class name of the current input.

      Returns string

      the class name

    • Parameters

      • pointers: PointerTouch[]

      Returns PointerTouch[]

    • Get the friendly name associated with the input class.

      Returns string

      the input friendly name

    • Called each time a new POINTERDOWN event occurs. Ie, for each button press. Override this method to provide functionality.

      Parameters

      • evt: PointerEvent

      Returns void

    • Called each time a new POINTERUP event occurs. Ie, for each button release. Override this method to provide functionality.

      Parameters

      • evt: PointerEvent

      Returns void

    • Called on pointer POINTERDOUBLETAP event. Override this method to provide functionality on POINTERDOUBLETAP event.

      Parameters

      • type: string

        type of event

      Returns void

    • Called when window becomes inactive. Override this method to provide functionality.

      Returns void

    • Called on pointer POINTERMOVE event if multiple touches are active. Override this method to provide functionality.

      Parameters

      • pointA: Nullable<PointerTouch>
      • pointB: Nullable<PointerTouch>
      • previousPinchSquaredDistance: number

        Sqr Distance between the points the last time this event was fired (by this input)

      • pinchSquaredDistance: number

        Sqr Distance between the points this time

      • previousMultiTouchPanPosition: Nullable<PointerTouch>

        Previous center point between the points

      • multiTouchPanPosition: Nullable<PointerTouch>

        Current center point between the points

      Returns void

    • Called on pointer POINTERMOVE event if only a single touch is active. Override this method to provide functionality.

      Parameters

      • point: Nullable<PointerTouch>

        The current position of the pointer

      • offsetX: number

        The offsetX of the pointer when the event occurred

      • offsetY: number

        The offsetY of the pointer when the event occurred

      Returns void