ScreenSpaceInputBindings

Methods

static Cesium.ScreenSpaceInputBindings.registerDragInputBindings(handler, inputBindings, dragInputActions)DragInputState

Registers drag input bindings on a screen space event handler.
Name Type Description
handler ScreenSpaceEventHandler The screen space event handler.
inputBindings Array.<InputBinding> The drag bindings to register.
dragInputActions DragInputActions The callbacks to invoke for drag actions.
Returns:
The drag input state.

Type Definitions

Cesium.ScreenSpaceInputBindings.DragInputActions

Properties:
Name Type Attributes Description
start function <optional>
Called on drag start.
end function <optional>
Called on drag stop.
change function <optional>
Called on drag move.

Cesium.ScreenSpaceInputBindings.DragInputState

Properties:
Name Type Description
isDragging boolean True if a drag is in progress, false otherwise.

Cesium.ScreenSpaceInputBindings.InputBinding

Properties:
Name Type Attributes Description
button MouseButton The mouse button used for drag start/stop.
modifier number <optional>
The optional keyboard modifier to register.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.