Manage the keyboard inputs to control the movement of an arc rotate camera.
SpeedSearch playground for angularSpeed
Rotation speed of the camera
Defines the camera the input is attached to.
DownSearch playground for keysDown
Defines the list of key codes associated with the down action (decrease alpha)
LeftSearch playground for keysLeft
Defines the list of key codes associated with the left action (increase beta)
ResetSearch playground for keysReset
Defines the list of key codes associated with the reset action. Those keys reset the camera to its last stored state (with the method camera.storeState())
RightSearch playground for keysRight
Defines the list of key codes associated with the right action (decrease beta)
Defines the list of key codes associated with the up action (increase alpha)
SensibilitySearch playground for panningSensibility
Defines the panning sensibility of the inputs. (How fast is the camera panning)
Alt ToZoomSearch playground for useAltToZoom
Defines whether maintaining the alt key down switch the movement mode from orientation to zoom.
SensibilitySearch playground for zoomingSensibility
Defines the zooming sensibility of the inputs. (How fast is the camera zooming)
ControlSearch playground for attachControl
Attach the input controls to a specific dom element to get the input from.
Optional noPreventDefault: boolean
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
InputsSearch playground for checkInputs
Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.
ControlSearch playground for detachControl
Detach the current controls from the specified dom element.
Class NameSearch playground for getClassName
Gets the class name of the current intput.
the class name
Simple NameSearch playground for getSimpleName
Get the friendly name associated with the input class.
the input friendly name