Instantiates a new FreeCameraInputsManager.
Defines the camera the inputs belong to
Defines the list of inputs attahed to the camera.
Defines the dom element the camera is collecting inputs from. This is null if the controls have not been attached.
Defined the camera the input manager belongs to.
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.
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Add an input method to a camera
camera input method
Add orientation input support to the input manager.
the current input manager
Adds gamepad input support to the FreeCameraInputsManager.
the FreeCameraInputsManager
Add keyboard input support to the input manager.
the current input manager
Add mouse input support to the input manager.
if the FreeCameraMouseInput should support touch (default: true)
the current input manager
Add touch input support to the input manager.
the current input manager
Add virtual joystick input support to the input manager.
the current input manager
Attach the current manager inputs controls to a specific dom element to listen the events from.
Defines the dom element to collect the events from
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Attach the input controls to the currently attached dom element to listen the events from.
Defines the input to attach
Remove all attached input methods from a camera
Detach the current manager inputs controls from a specific dom element.
Defines the dom element to collect the events from
Defines whether the input should be removed from the current list of attached inputs
Parses an input manager serialized JSON to restore the previous list of inputs and states associated to a camera.
Defines the JSON to parse
Rebuild the dynamic inputCheck function from the current list of defined inputs in the manager.
Remove a specific input method from a camera example: camera.inputs.remove(camera.inputs.attached.mouse);
camera input method
Remove a specific input type from a camera example: camera.inputs.remove("ArcRotateCameraGamepadInput");
the type of the input to remove
Serialize the current input manager attached to a camera. This ensures than once parsed, the input associated to the camera will be identical to the current ones
Defines the camera serialization JSON the input serialization should write to
Generated using TypeDoc
Default Inputs manager for the FreeCamera. It groups all the default supported inputs for ease of use. Interface representing a free camera inputs manager
http://doc.babylonjs.com/how_to/customizing_camera_inputs