babylon.virtualJoysticksCamera.js 804 B

123456789101112131415161718
  1. var __extends = (this && this.__extends) || function (d, b) {
  2. for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
  3. function __() { this.constructor = d; }
  4. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  5. };
  6. var BABYLON;
  7. (function (BABYLON) {
  8. // We're mainly based on the logic defined into the FreeCamera code
  9. var VirtualJoysticksCamera = (function (_super) {
  10. __extends(VirtualJoysticksCamera, _super);
  11. function VirtualJoysticksCamera(name, position, scene) {
  12. _super.call(this, name, position, scene);
  13. this.inputs.addVirtualJoystick();
  14. }
  15. return VirtualJoysticksCamera;
  16. }(BABYLON.FreeCamera));
  17. BABYLON.VirtualJoysticksCamera = VirtualJoysticksCamera;
  18. })(BABYLON || (BABYLON = {}));