浏览代码

warn for touchscreens

Raanan Weber 5 年之前
父节点
当前提交
30cbb78a33
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 { WebXRAbstractMotionController } from './motionController/webXRAbstractMotionController';
 import { WebXRMotionControllerManager } from './motionController/webXRMotionControllerManager';
+import { Tools } from '../Misc/tools';
 
 let idCount = 0;
 
@@ -115,6 +116,8 @@ export class WebXRInputSource {
                         }
                     });
                 }
+            }, () => {
+                Tools.Warn(`Could not find a matching motion controller for the registered input source`);
             });
         }
     }