Trevor Baron 6 rokov pred
rodič
commit
cc00cee103

+ 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) => {