babylon.gamepadCamera.js 921 B

123456789101112131415161718192021
  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 GamepadCamera = (function (_super) {
  10. __extends(GamepadCamera, _super);
  11. function GamepadCamera(name, position, scene) {
  12. BABYLON.Tools.Warn("Deprecated. Please use Universal Camera instead.");
  13. _super.call(this, name, position, scene);
  14. }
  15. GamepadCamera.prototype.getTypeName = function () {
  16. return "GamepadCamera";
  17. };
  18. return GamepadCamera;
  19. }(BABYLON.UniversalCamera));
  20. BABYLON.GamepadCamera = GamepadCamera;
  21. })(BABYLON || (BABYLON = {}));