Phaserについて調査中。
マウス操作、タッチ操作でスコアは差がでるので、検知だったり制限する方法が知りたかったので調べた結果のメモ。
create() {
if (this.sys.game.device.input.mouse) {
// マウス入力のみを有効化
this.input.mouse.enabled = true;
this.input.touch.enabled = false;
} else if (this.sys.game.device.input.touch) {
// タッチ入力のみを有効化
this.input.mouse.enabled = false;
this.input.touch.enabled = true;
}
}