{"ast":null,"code":"import { CameraInputsManager } from \"./cameraInputsManager.js\";\nimport { FreeCameraKeyboardMoveInput } from \"../Cameras/Inputs/freeCameraKeyboardMoveInput.js\";\nimport { FreeCameraMouseInput } from \"../Cameras/Inputs/freeCameraMouseInput.js\";\nimport { FreeCameraMouseWheelInput } from \"../Cameras/Inputs/freeCameraMouseWheelInput.js\";\nimport { FreeCameraTouchInput } from \"../Cameras/Inputs/freeCameraTouchInput.js\";\n/**\n * Default Inputs manager for the FreeCamera.\n * It groups all the default supported inputs for ease of use.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs\n */\nexport class FreeCameraInputsManager extends CameraInputsManager {\n /**\n * Instantiates a new FreeCameraInputsManager.\n * @param camera Defines the camera the inputs belong to\n */\n constructor(camera) {\n super(camera);\n /**\n * @internal\n */\n this._mouseInput = null;\n /**\n * @internal\n */\n this._mouseWheelInput = null;\n }\n /**\n * Add keyboard input support to the input manager.\n * @returns the current input manager\n */\n addKeyboard() {\n this.add(new FreeCameraKeyboardMoveInput());\n return this;\n }\n /**\n * Add mouse input support to the input manager.\n * @param touchEnabled if the FreeCameraMouseInput should support touch (default: true)\n * @returns the current input manager\n */\n addMouse(touchEnabled = true) {\n if (!this._mouseInput) {\n this._mouseInput = new FreeCameraMouseInput(touchEnabled);\n this.add(this._mouseInput);\n }\n return this;\n }\n /**\n * Removes the mouse input support from the manager\n * @returns the current input manager\n */\n removeMouse() {\n if (this._mouseInput) {\n this.remove(this._mouseInput);\n }\n return this;\n }\n /**\n * Add mouse wheel input support to the input manager.\n * @returns the current input manager\n */\n addMouseWheel() {\n if (!this._mouseWheelInput) {\n this._mouseWheelInput = new FreeCameraMouseWheelInput();\n this.add(this._mouseWheelInput);\n }\n return this;\n }\n /**\n * Removes the mouse wheel input support from the manager\n * @returns the current input manager\n */\n removeMouseWheel() {\n if (this._mouseWheelInput) {\n this.remove(this._mouseWheelInput);\n }\n return this;\n }\n /**\n * Add touch input support to the input manager.\n * @returns the current input manager\n */\n addTouch() {\n this.add(new FreeCameraTouchInput());\n return this;\n }\n /**\n * Remove all attached input methods from a camera\n */\n clear() {\n super.clear();\n this._mouseInput = null;\n }\n}","map":{"version":3,"names":["CameraInputsManager","FreeCameraKeyboardMoveInput","FreeCameraMouseInput","FreeCameraMouseWheelInput","FreeCameraTouchInput","FreeCameraInputsManager","constructor","camera","_mouseInput","_mouseWheelInput","addKeyboard","add","addMouse","touchEnabled","removeMouse","remove","addMouseWheel","removeMouseWheel","addTouch","clear"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Cameras/freeCameraInputsManager.js"],"sourcesContent":["import { CameraInputsManager } from \"./cameraInputsManager.js\";\nimport { FreeCameraKeyboardMoveInput } from \"../Cameras/Inputs/freeCameraKeyboardMoveInput.js\";\nimport { FreeCameraMouseInput } from \"../Cameras/Inputs/freeCameraMouseInput.js\";\nimport { FreeCameraMouseWheelInput } from \"../Cameras/Inputs/freeCameraMouseWheelInput.js\";\nimport { FreeCameraTouchInput } from \"../Cameras/Inputs/freeCameraTouchInput.js\";\n/**\n * Default Inputs manager for the FreeCamera.\n * It groups all the default supported inputs for ease of use.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs\n */\nexport class FreeCameraInputsManager extends CameraInputsManager {\n /**\n * Instantiates a new FreeCameraInputsManager.\n * @param camera Defines the camera the inputs belong to\n */\n constructor(camera) {\n super(camera);\n /**\n * @internal\n */\n this._mouseInput = null;\n /**\n * @internal\n */\n this._mouseWheelInput = null;\n }\n /**\n * Add keyboard input support to the input manager.\n * @returns the current input manager\n */\n addKeyboard() {\n this.add(new FreeCameraKeyboardMoveInput());\n return this;\n }\n /**\n * Add mouse input support to the input manager.\n * @param touchEnabled if the FreeCameraMouseInput should support touch (default: true)\n * @returns the current input manager\n */\n addMouse(touchEnabled = true) {\n if (!this._mouseInput) {\n this._mouseInput = new FreeCameraMouseInput(touchEnabled);\n this.add(this._mouseInput);\n }\n return this;\n }\n /**\n * Removes the mouse input support from the manager\n * @returns the current input manager\n */\n removeMouse() {\n if (this._mouseInput) {\n this.remove(this._mouseInput);\n }\n return this;\n }\n /**\n * Add mouse wheel input support to the input manager.\n * @returns the current input manager\n */\n addMouseWheel() {\n if (!this._mouseWheelInput) {\n this._mouseWheelInput = new FreeCameraMouseWheelInput();\n this.add(this._mouseWheelInput);\n }\n return this;\n }\n /**\n * Removes the mouse wheel input support from the manager\n * @returns the current input manager\n */\n removeMouseWheel() {\n if (this._mouseWheelInput) {\n this.remove(this._mouseWheelInput);\n }\n return this;\n }\n /**\n * Add touch input support to the input manager.\n * @returns the current input manager\n */\n addTouch() {\n this.add(new FreeCameraTouchInput());\n return this;\n }\n /**\n * Remove all attached input methods from a camera\n */\n clear() {\n super.clear();\n this._mouseInput = null;\n }\n}\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,2BAA2B,QAAQ,kDAAkD;AAC9F,SAASC,oBAAoB,QAAQ,2CAA2C;AAChF,SAASC,yBAAyB,QAAQ,gDAAgD;AAC1F,SAASC,oBAAoB,QAAQ,2CAA2C;AAChF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,SAASL,mBAAmB,CAAC;EAC7D;AACJ;AACA;AACA;EACIM,WAAWA,CAACC,MAAM,EAAE;IAChB,KAAK,CAACA,MAAM,CAAC;IACb;AACR;AACA;IACQ,IAAI,CAACC,WAAW,GAAG,IAAI;IACvB;AACR;AACA;IACQ,IAAI,CAACC,gBAAgB,GAAG,IAAI;EAChC;EACA;AACJ;AACA;AACA;EACIC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,GAAG,CAAC,IAAIV,2BAA2B,CAAC,CAAC,CAAC;IAC3C,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;AACA;EACIW,QAAQA,CAACC,YAAY,GAAG,IAAI,EAAE;IAC1B,IAAI,CAAC,IAAI,CAACL,WAAW,EAAE;MACnB,IAAI,CAACA,WAAW,GAAG,IAAIN,oBAAoB,CAACW,YAAY,CAAC;MACzD,IAAI,CAACF,GAAG,CAAC,IAAI,CAACH,WAAW,CAAC;IAC9B;IACA,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIM,WAAWA,CAAA,EAAG;IACV,IAAI,IAAI,CAACN,WAAW,EAAE;MAClB,IAAI,CAACO,MAAM,CAAC,IAAI,CAACP,WAAW,CAAC;IACjC;IACA,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIQ,aAAaA,CAAA,EAAG;IACZ,IAAI,CAAC,IAAI,CAACP,gBAAgB,EAAE;MACxB,IAAI,CAACA,gBAAgB,GAAG,IAAIN,yBAAyB,CAAC,CAAC;MACvD,IAAI,CAACQ,GAAG,CAAC,IAAI,CAACF,gBAAgB,CAAC;IACnC;IACA,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIQ,gBAAgBA,CAAA,EAAG;IACf,IAAI,IAAI,CAACR,gBAAgB,EAAE;MACvB,IAAI,CAACM,MAAM,CAAC,IAAI,CAACN,gBAAgB,CAAC;IACtC;IACA,OAAO,IAAI;EACf;EACA;AACJ;AACA;AACA;EACIS,QAAQA,CAAA,EAAG;IACP,IAAI,CAACP,GAAG,CAAC,IAAIP,oBAAoB,CAAC,CAAC,CAAC;IACpC,OAAO,IAAI;EACf;EACA;AACJ;AACA;EACIe,KAAKA,CAAA,EAAG;IACJ,KAAK,CAACA,KAAK,CAAC,CAAC;IACb,IAAI,CAACX,WAAW,GAAG,IAAI;EAC3B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}