CameraInputsManager<TCamera>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

attached

attached: CameraInputsMap<TCamera>

attachedElement

attachedElement: Nullable<HTMLElement>

camera

camera: TCamera

checkInputs

checkInputs: function

Type declaration

    • (): void
    • Returns void

noPreventDefault

noPreventDefault: boolean

Methods

add

  • Add an input method to a camera. builtin inputs example: camera.inputs.addGamepad(); custom inputs example: camera.inputs.add(new BABYLON.FreeCameraGamepadInput());

    Parameters

    Returns void

attachElement

  • attachElement(element: HTMLElement, noPreventDefault?: boolean): void
  • Parameters

    • element: HTMLElement
    • Optional noPreventDefault: boolean

    Returns void

attachInput

clear

  • clear(): void
  • Remove all attached input methods from a camera

    Returns void

detachElement

  • detachElement(element: HTMLElement, disconnect?: boolean): void
  • Parameters

    • element: HTMLElement
    • Optional disconnect: boolean

    Returns void

parse

  • parse(parsedCamera: any): void
  • Parameters

    • parsedCamera: any

    Returns void

rebuildInputCheck

  • rebuildInputCheck(): void
  • Returns void

remove

  • Remove a specific input method from a camera example: camera.inputs.remove(camera.inputs.attached.mouse);

    Parameters

    Returns void

removeByType

  • removeByType(inputType: string): void
  • Parameters

    • inputType: string

    Returns void

serialize

  • serialize(serializedCamera: any): void
  • Parameters

    • serializedCamera: any

    Returns void

Generated using TypeDoc