-
Creator 版本: 3.8.0
-
目标平台: 手机端浏览器(我测试用的是华为浏览器,是用的creater局域网调试功能,打开二维码,然后我自己的华为浏览器扫码进入的)
-
重现方式:重力感应功能不实现,每次都是这样
-
首个报错: 具体代码如下:
import { …, input, Input, EventAcceleration, … } from “cc”;
…
start() {
…
input.setAccelerometerEnabled(true);
input.on(Input.EventType.DEVICEMOTION, this.onDeviceMotion, this);
…
};
…
onDeviceMotion() {
console.log(“发生了重力感应事件”);
};
现在控制台没法输出“发生了重力感应事件”
我看论坛里说改http为https,但是没办法改啊
