Options
All
  • Public
  • Public/Protected
  • All
Menu

Manage the Virtual Joystick inputs to control the movement of a free camera.

see

https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs

Hierarchy

  • FreeCameraVirtualJoystickInput

Implements

Index

Constructors

Properties

camera: FreeCamera

Defines the camera the input is attached to.

Methods

  • attachControl(): void
  • Attach the input controls to a specific dom element to get the input from.

    Returns void

  • checkInputs(): void
  • Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.

    Returns 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

  • Gets the left stick of the virtual joystick.

    Returns VirtualJoystick

    The virtual Joystick

  • Gets the right stick of the virtual joystick.

    Returns VirtualJoystick

    The virtual Joystick

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

    Returns string

    the input friendly name

Legend

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

Settings

Theme