Remove debug and change version to release
This commit is contained in:
parent
f9e80edb2a
commit
9b5d4caf05
9 changed files with 1 additions and 43 deletions
|
|
@ -10,20 +10,17 @@ var currentBgs = null;
|
|||
document.addEventListener("deviceready", onCordovaDeviceReady, false);
|
||||
|
||||
function onCordovaDeviceReady() {
|
||||
console.log("AudioManager - SETUP!!!"); //Remove in release
|
||||
document.addEventListener("pause", onCordovaPause, false);
|
||||
document.addEventListener("resume", onCordovaResume, false);
|
||||
};
|
||||
|
||||
function onCordovaPause() {
|
||||
console.log("AudioManager - HIDE!!!"); //Remove in release
|
||||
currentBgm = AudioManager.saveBgm();
|
||||
currentBgs = AudioManager.saveBgs();
|
||||
AudioManager.stopAll();
|
||||
};
|
||||
|
||||
function onCordovaResume() {
|
||||
console.log("AudioManager - SHOW!!!"); //Remove in release
|
||||
try {
|
||||
AudioManager.replayBgm(currentBgm);
|
||||
AudioManager.replayBgs(currentBgs);
|
||||
|
|
@ -56,18 +53,15 @@ WebAudio.prototype._setupEventHandlers = function () {
|
|||
};
|
||||
|
||||
WebAudio.prototype._onCordovaDeviceReady = function () {
|
||||
console.log("WebAudio - SETUP!!!"); //Remove in release
|
||||
document.addEventListener("pause", this._onCordovaPause.bind(this), false);
|
||||
document.addEventListener("resume", this._onCordovaResume.bind(this), false);
|
||||
};
|
||||
|
||||
WebAudio.prototype._onCordovaPause = function () {
|
||||
console.log("WebAudio - HIDE!!!"); //Remove in release
|
||||
this._onHide();
|
||||
};
|
||||
|
||||
WebAudio.prototype._onCordovaResume = function () {
|
||||
console.log("WebAudio - SHOW!!!"); //Remove in release
|
||||
this._onShow();
|
||||
};
|
||||
|
||||
|
|
@ -81,18 +75,15 @@ Html5Audio.prototype._setupEventHandlers = function () {
|
|||
};
|
||||
|
||||
Html5Audio.prototype._onCordovaDeviceReady = function () {
|
||||
console.log("Html5Audio - SETUP!!!"); //Remove in release
|
||||
this._audioElement.addEventListener("pause", this._onCordovaPause.bind(this), false);
|
||||
this._audioElement.addEventListener("resume", this._onCordovaResume.bind(this), false);
|
||||
};
|
||||
|
||||
Html5Audio.prototype._onCordovaPause = function () {
|
||||
console.log("Html5Audio - HIDE!!!"); //Remove in release
|
||||
this._onHide();
|
||||
};
|
||||
|
||||
Html5Audio.prototype._onCordovaResume = function () {
|
||||
console.log("Html5Audio - SHOW!!!"); //Remove in release
|
||||
this._onShow();
|
||||
};
|
||||
|
||||
|
|
@ -120,18 +111,15 @@ StreamWebAudio.prototype._setupEventHandlers = function() {
|
|||
};
|
||||
|
||||
StreamWebAudio.prototype._onCordovaDeviceReady = function () {
|
||||
console.log("StreamWebAudio - SETUP!!!"); //Remove in release
|
||||
document.addEventListener("pause", this._onCordovaPause.bind(this), false);
|
||||
document.addEventListener("resume", this._onCordovaResume.bind(this), false);
|
||||
};
|
||||
|
||||
StreamWebAudio.prototype._onCordovaPause = function () {
|
||||
console.log("StreamWebAudio - HIDE!!!"); //Remove in release
|
||||
this._onHide();
|
||||
};
|
||||
|
||||
StreamWebAudio.prototype._onCordovaResume = function () {
|
||||
console.log("StreamWebAudio - SHOW!!!"); //Remove in release
|
||||
this._onShow();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -194,9 +194,6 @@ ONSControls.resetIdleAnimation = function() {
|
|||
//=============================================================================
|
||||
ONSControls.sendEvent = function(event, button) {
|
||||
const key = VirtualGamepad.keys.find((element) => element.name == button);
|
||||
if (event.type === "pointerdown") {
|
||||
console.log(`ONSControls: Pointer down for ${button}`); // Remove in release
|
||||
}
|
||||
VirtualGamepad.gamepad.buttons[key.code].pressed = event.type === "pointerdown" ? true : false
|
||||
}
|
||||
//=============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue