Class BaseCameraMouseWheelInputAbstract
Hierarchy (View Summary)
- BaseCameraMouseWheelInput
Implements
Constructors
constructor
-
Returns BaseCameraMouseWheelInput
Properties
Abstractcamera
Defines the camera the input is attached to.
on Changed Observable
{ wheelDeltaX: number; wheelDeltaY: number; wheelDeltaZ: number },
> = ...
Observable for when a mouse wheel move event occurs.
wheel Precision X
How fast is the camera moves in relation to X axis mouseWheel events. Use negative value to reverse direction.
wheel Precision Y
How fast is the camera moves in relation to Y axis mouseWheel events. Use negative value to reverse direction.
wheel Precision Z
How fast is the camera moves in relation to Z axis mouseWheel events. Use negative value to reverse direction.
Methods
attach Control
-
Attach the input controls to a specific dom element to get the input from.
Parameters
OptionalnoPreventDefault: booleanDefines whether event caught by the controls should call preventdefault(). (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Returns void
check Inputs
-
Called for each rendered frame.
Returns void
detach Control
-
Detach the current controls from the specified dom element.
Returns void
get Class Name
-
Gets the class name of the current input.
Returns string
the class name
get Simple Name
-
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.