Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseCameraPointersInput Abstract

Base class for Camera Pointer Inputs. See FollowCameraPointersInput in src/Cameras/Inputs/followCameraPointersInput.ts for example usage.

Hierarchy

Implements

Index

Constructors

Properties

buttons: number[]

Defines the buttons associated with the input to handle camera move.

camera: Camera

Defines the camera the input is attached to.

Methods

  • attachControl(noPreventDefault?: boolean): void
  • detachControl(): void
  • Detach the current controls from the specified dom element.

    Returns void

  • getClassName(): string
  • Gets the class name of the current input.

    Returns string

    the class name

  • getSimpleName(): string
  • 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

    Returns void

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

    Parameters

    Returns void

  • onContextMenu(evt: PointerEvent): void
  • Called on JS contextmenu event. Override this method to provide functionality.

    Parameters

    • evt: PointerEvent

    Returns void

  • onDoubleTap(type: string): void
  • Called on pointer POINTERDOUBLETAP event. Override this method to provide functionality on POINTERDOUBLETAP event.

    Parameters

    • type: string

    Returns void

  • onLostFocus(): 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

    Returns void

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

    Parameters

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme