Trevor Baron 6 年之前
父节点
当前提交
cc00cee103
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Cameras/Inputs/freeCameraDeviceOrientationInput.ts

+ 1 - 0
src/Cameras/Inputs/freeCameraDeviceOrientationInput.ts

@@ -54,6 +54,7 @@ export class FreeCameraDeviceOrientationInput implements ICameraInput<FreeCamera
     /**
      * Can be used to detect if a device orientation sensor is availible on a device
      * @param timeout amount of time in milliseconds to wait for a response from the sensor (default: infinite)
+     * @returns a promise that will resolve on orientation change
      */
     public static WaitForOrientationChangeAsync(timeout?: number) {
         return new Promise((res, rej) => {