Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseCameraPointersInput

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

Hierarchy

Implements

Index

Properties

buttonsSearch playground for buttons

buttons: number[]

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

Abstract cameraSearch playground for camera

camera: Camera

Defines the camera the input is attached to.

Methods

attachControlSearch playground for attachControl

  • attachControl(noPreventDefault?: boolean): void

detachControlSearch playground for detachControl

  • detachControl(): void
  • Detach the current controls from the specified dom element.

    Returns void

getClassNameSearch playground for getClassName

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

    Returns string

    the class name

getSimpleNameSearch playground for getSimpleName

  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input friendly name

onButtonDownSearch playground for onButtonDown

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

    Parameters

    Returns void

onButtonUpSearch playground for onButtonUp

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

    Parameters

    Returns void

onContextMenuSearch playground for onContextMenu

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

    Parameters

    • evt: PointerEvent

    Returns void

onDoubleTapSearch playground for onDoubleTap

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

    Parameters

    • type: string

    Returns void

onLostFocusSearch playground for onLostFocus

  • onLostFocus(): void
  • Called when window becomes inactive. Override this method to provide functionality.

    Returns void

onMultiTouchSearch playground for onMultiTouch

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

    Parameters

    Returns void

onTouchSearch playground for onTouch

  • 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
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method