浏览代码

final gamepad comments

Kacey Coley 7 年之前
父节点
当前提交
d4c1833dd5
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 2
      src/Gamepad/babylon.gamepad.ts
  2. 1 0
      src/Gamepad/babylon.gamepadManager.ts

+ 0 - 2
src/Gamepad/babylon.gamepad.ts

@@ -164,7 +164,6 @@
         }
         /**
          * Sets the left joystick values
-         * @param newValues The value to set the left joystick to
          */
         public set leftStick(newValues: StickValues) {
             if (this._onleftstickchanged && (this._leftStick.x !== newValues.x || this._leftStick.y !== newValues.y)) {
@@ -180,7 +179,6 @@
         }
         /**
          * Sets the right joystick value
-         * @param newValues The value to set the right joystick to
          */
         public set rightStick(newValues: StickValues) {
             if (this._onrightstickchanged && (this._rightStick.x !== newValues.x || this._rightStick.y !== newValues.y)) {

+ 1 - 0
src/Gamepad/babylon.gamepadManager.ts

@@ -111,6 +111,7 @@
         /**
          * Get the gamepad controllers based on type
          * @param type The type of gamepad controller
+         * @returns Nullable gamepad
          */
         public getGamepadByType(type: number = Gamepad.XBOX): Nullable<Gamepad> {
             for (var gamepad of this._babylonGamepads) {