Class BaseCameraMouseWheelInput Abstract
Hierarchy
- BaseCameraMouseWheelInput
Implements
Index
Constructors
constructor
Returns BaseCameraMouseWheelInput
Properties
Abstract cameraSearch playground for camera
Defines the camera the input is attached to.
on Changed ObservableSearch playground for onChangedObservable
Observable for when a mouse wheel move event occurs.
wheel PrecisionXSearch playground for wheelPrecisionX
How fast is the camera moves in relation to X axis mouseWheel events. Use negative value to reverse direction.
wheel PrecisionYSearch playground for wheelPrecisionY
How fast is the camera moves in relation to Y axis mouseWheel events. Use negative value to reverse direction.
wheel PrecisionZSearch playground for wheelPrecisionZ
How fast is the camera moves in relation to Z axis mouseWheel events. Use negative value to reverse direction.
Methods
attach ControlSearch playground for attachControl
Attach the input controls to a specific dom element to get the input from.
Parameters
Optional noPreventDefault: boolean
Defines whether event caught by the controls should call preventdefault(). (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Returns void
check InputsSearch playground for checkInputs
Called for each rendered frame.
Returns void
detach ControlSearch playground for detachControl
Detach the current controls from the specified dom element.
Returns void
get Class NameSearch playground for getClassName
Gets the class name of the current input.
Returns string
the class name
get Simple NameSearch playground for getSimpleName
Get the friendly name associated with the input class.
Returns string
the input friendly name
Base class for mouse wheel input.. See FollowCameraMouseWheelInput in src/Cameras/Inputs/freeCameraMouseWheelInput.ts for example usage.