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