Browse Source

warn for touchscreens

Raanan Weber 5 years ago
parent
commit
30cbb78a33
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/XR/webXRInputSource.ts

+ 3 - 0
src/XR/webXRInputSource.ts

@@ -5,6 +5,7 @@ import { Ray } from '../Culling/ray';
 import { Scene } from '../scene';
 import { Scene } from '../scene';
 import { WebXRAbstractMotionController } from './motionController/webXRAbstractMotionController';
 import { WebXRAbstractMotionController } from './motionController/webXRAbstractMotionController';
 import { WebXRMotionControllerManager } from './motionController/webXRMotionControllerManager';
 import { WebXRMotionControllerManager } from './motionController/webXRMotionControllerManager';
+import { Tools } from '../Misc/tools';
 
 
 let idCount = 0;
 let idCount = 0;
 
 
@@ -115,6 +116,8 @@ export class WebXRInputSource {
                         }
                         }
                     });
                     });
                 }
                 }
+            }, () => {
+                Tools.Warn(`Could not find a matching motion controller for the registered input source`);
             });
             });
         }
         }
     }
     }