PIXI Controls: Disable touch in gameplay

This commit is contained in:
OleSTEEP 2024-02-08 23:15:41 +03:00
parent 99631a6d08
commit 3f88db76b6
2 changed files with 5 additions and 8 deletions

View file

@ -272,6 +272,10 @@ ONSControls.updateButtons = function() {
console.log("ONSControls: Controls updated");
}
ONSControls.disableTouch = function() {
TouchInput.update = function() {return;};
}
@ -804,6 +808,7 @@ ONSControls.initialize = function() {
this.createBumpers();
this.createAdditionalButtons();
this.updateButtons();
this.disableTouch();
VirtualGamepad.connect();
Window_OmoMenuOptionsONSControls.prototype.add();
}