|
@@ -227,11 +227,18 @@ export class FreeCamera extends TargetCamera {
|
|
|
*/
|
|
|
public attachControl(noPreventDefault?: boolean): void;
|
|
|
/**
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
+ * @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
+ * BACK COMPAT SIGNATURE ONLY.
|
|
|
+ */
|
|
|
+ public attachControl(ignored: any, noPreventDefault?: boolean): void;
|
|
|
+ /**
|
|
|
* Attached controls to the current camera.
|
|
|
* @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
*/
|
|
|
- public attachControl(ignored: any, noPreventDefault?: boolean): void {
|
|
|
+ public attachControl(ignored?: any, noPreventDefault?: boolean): void {
|
|
|
noPreventDefault = Tools.BackCompatCameraNoPreventDefault(arguments);
|
|
|
this.inputs.attachElement(noPreventDefault);
|
|
|
}
|
|
@@ -240,7 +247,11 @@ export class FreeCamera extends TargetCamera {
|
|
|
* Detach the current controls from the specified dom element.
|
|
|
*/
|
|
|
public detachControl(): void;
|
|
|
-
|
|
|
+ /**
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
|
+ * @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
+ */
|
|
|
+ public detachControl(ignored: any): void;
|
|
|
/**
|
|
|
* Detach the current controls from the specified dom element.
|
|
|
* @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|