安卓web端测试陀螺仪无问题
ios注册Listener没有回调
已经测试过的方式:
以下三种方式都无返回
window.addEventListener('devicemotion', function(event){})
window.addEventListener('deviceorientation', function(event) {})
Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation);
连接打开方式都由[b]微信扫一扫[/b]打开,safari不支持此demo运行
查找到资料地址:
https://caniuse.com/#search=deviceorientationios测试微信浏览器页面地址:
https://www.audero.it/demo/device-orientation-api-demo.htmliso测试图如下:
上面测试的demo是一个单html页面
相同文件放置在laya项目/bin/demo/device-orientation-api-demo.html
发布后打开后无反应

不知具体原因如何?疑似Bug
demo已上传
附件:
LayaTSAcceleration.zip