- Joined
- May 5, 2016
- Messages
- 32
- Reaction score
- 40
- First Language
- French
- Primarily Uses
- RMMV
Hello,
I'm working for a mobile game with RpgMakerMv, and I searching, in google, line of command for BackButton, in Mobile (Android), but i have don't find this.
I need your help please.
I need the line of command for open the menu and cancel input for Android:
Scene_Map.prototype.isMenuCalled = function() {
return Input.isTriggered('menu') || TouchInput.isCancelled() || TouchInput.onBackPressed();
};
Window_Selectable.prototype.processTouch = function() {
if (this.isOpenAndActive()) {
if (TouchInput.isTriggered() && this.isTouchedInsideFrame()) {
this._touching = true;
this.onTouch(true);
} else if (TouchInput.isCancelled() || TouchInput.onBackPressed()) {
if (this.isCancelEnabled()) {
this.processCancel();
}
}
if (this._touching) {
if (TouchInput.isPressed()) {
this.onTouch(false);
} else {
this._touching = false;
}
}
} else {
this._touching = false;
}
};
Thanks and sorry for my english.
I'm working for a mobile game with RpgMakerMv, and I searching, in google, line of command for BackButton, in Mobile (Android), but i have don't find this.
I need your help please.
I need the line of command for open the menu and cancel input for Android:
Scene_Map.prototype.isMenuCalled = function() {
return Input.isTriggered('menu') || TouchInput.isCancelled() || TouchInput.onBackPressed();
};
Window_Selectable.prototype.processTouch = function() {
if (this.isOpenAndActive()) {
if (TouchInput.isTriggered() && this.isTouchedInsideFrame()) {
this._touching = true;
this.onTouch(true);
} else if (TouchInput.isCancelled() || TouchInput.onBackPressed()) {
if (this.isCancelEnabled()) {
this.processCancel();
}
}
if (this._touching) {
if (TouchInput.isPressed()) {
this.onTouch(false);
} else {
this._touching = false;
}
}
} else {
this._touching = false;
}
};
Thanks and sorry for my english.
