PIXI Controls: Disable touch in gameplay
This commit is contained in:
parent
99631a6d08
commit
3f88db76b6
2 changed files with 5 additions and 8 deletions
|
@ -272,6 +272,10 @@ ONSControls.updateButtons = function() {
|
||||||
console.log("ONSControls: Controls updated");
|
console.log("ONSControls: Controls updated");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ONSControls.disableTouch = function() {
|
||||||
|
TouchInput.update = function() {return;};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -804,6 +808,7 @@ ONSControls.initialize = function() {
|
||||||
this.createBumpers();
|
this.createBumpers();
|
||||||
this.createAdditionalButtons();
|
this.createAdditionalButtons();
|
||||||
this.updateButtons();
|
this.updateButtons();
|
||||||
|
this.disableTouch();
|
||||||
VirtualGamepad.connect();
|
VirtualGamepad.connect();
|
||||||
Window_OmoMenuOptionsONSControls.prototype.add();
|
Window_OmoMenuOptionsONSControls.prototype.add();
|
||||||
}
|
}
|
|
@ -50,10 +50,6 @@ Graphics.printLoadingError = function (url) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Graphics._switchFPSMeter = function() {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
Graphics._switchFullScreen = function () {
|
Graphics._switchFullScreen = function () {
|
||||||
this._requestFullScreen();
|
this._requestFullScreen();
|
||||||
};
|
};
|
||||||
|
@ -97,10 +93,6 @@ Input._setupEventHandlers = function () {
|
||||||
document.addEventListener('keyup', this._onKeyUp.bind(this));
|
document.addEventListener('keyup', this._onKeyUp.bind(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
TouchInput.update = function () {
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// * Patches for rpg_managers
|
// * Patches for rpg_managers
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue