Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseCameraMouseWheelInput Abstract

Base class for mouse wheel input.. See FollowCameraMouseWheelInput in src/Cameras/Inputs/freeCameraMouseWheelInput.ts for example usage.

Hierarchy

Implements

Index

Constructors

Properties

camera: Camera

Defines the camera the input is attached to.

onChangedObservable: Observable<{ wheelDeltaX: number; wheelDeltaY: number; wheelDeltaZ: number }>

Observable for when a mouse wheel move event occurs.

wheelPrecisionX: number

How fast is the camera moves in relation to X axis mouseWheel events. Use negative value to reverse direction.

wheelPrecisionY: number

How fast is the camera moves in relation to Y axis mouseWheel events. Use negative value to reverse direction.

wheelPrecisionZ: number

How fast is the camera moves in relation to Z axis mouseWheel events. Use negative value to reverse direction.

Methods

  • attachControl(noPreventDefault?: boolean): void
  • checkInputs(): void
  • Called for each rendered frame.

    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

  • 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