Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseCameraMouseWheelInput

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

Hierarchy

Implements

Index

Properties

Abstract cameraSearch playground for camera

camera: Camera

Defines the camera the input is attached to.

onChangedObservableSearch playground for onChangedObservable

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

Observable for when a mouse wheel move event occurs.

wheelPrecisionXSearch playground for wheelPrecisionX

wheelPrecisionX: number

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

wheelPrecisionYSearch playground for wheelPrecisionY

wheelPrecisionY: number

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

wheelPrecisionZSearch playground for wheelPrecisionZ

wheelPrecisionZ: number

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

Methods

attachControlSearch playground for attachControl

  • attachControl(noPreventDefault?: boolean): void

checkInputsSearch playground for checkInputs

  • checkInputs(): void
  • Called for each rendered frame.

    Returns 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

Legend

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