Class BaseCameraPointersInput Abstract
Hierarchy
- BaseCameraPointersInput
Implements
Index
Constructors
constructor
Returns BaseCameraPointersInput
Properties
buttonsSearch playground for buttons
Defines the buttons associated with the input to handle camera move.
Abstract cameraSearch playground for camera
Defines the camera the input is attached to.
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
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
on Button DownSearch playground for onButtonDown
Called each time a new POINTERDOWN event occurs. Ie, for each button press. Override this method to provide functionality.
Parameters
evt: IPointerEvent
Returns void
on Button UpSearch playground for onButtonUp
Called each time a new POINTERUP event occurs. Ie, for each button release. Override this method to provide functionality.
Parameters
evt: IPointerEvent
Returns void
on Context MenuSearch playground for onContextMenu
Called on JS contextmenu event. Override this method to provide functionality.
Parameters
evt: PointerEvent
Returns void
on Double TapSearch playground for onDoubleTap
Called on pointer POINTERDOUBLETAP event. Override this method to provide functionality on POINTERDOUBLETAP event.
Parameters
type: string
Returns void
on Lost FocusSearch playground for onLostFocus
Called when window becomes inactive. Override this method to provide functionality.
Returns void
on Multi TouchSearch playground for onMultiTouch
Called on pointer POINTERMOVE event if multiple touches are active. Override this method to provide functionality.
Parameters
_pointA: Nullable<PointerTouch>
_pointB: Nullable<PointerTouch>
previousPinchSquaredDistance: number
pinchSquaredDistance: number
previousMultiTouchPanPosition: Nullable<PointerTouch>
multiTouchPanPosition: Nullable<PointerTouch>
Returns void
on TouchSearch playground for onTouch
Called on pointer POINTERMOVE event if only a single touch is active. Override this method to provide functionality.
Parameters
point: Nullable<PointerTouch>
offsetX: number
offsetY: number
Returns void
Base class for Camera Pointer Inputs. See FollowCameraPointersInput in src/Cameras/Inputs/followCameraPointersInput.ts for example usage.