Hello,
My objective is to assign to right-clic (mouse), escape (keyboard) AND Y button (gamepad) a common event.
I would like to allow players to choose their prefered way to run my game (keyboard, mouse or gamepad) and allow them to easily access a special menu (via a custom Common event).
I have set on disabled the normal menu access.
It's ok for mouse and keyboard with the following plugin (it's my first plugin...) :
But I don't see how to assign a gamepad button... I've tried something like this :
(Input.isTriggered('$Y'))
and it don't work.
I've searched here on the forum but i only find big plugins with no explanation of the way i could call a gamepad button.
Thank you for your help !
Arnaud
My objective is to assign to right-clic (mouse), escape (keyboard) AND Y button (gamepad) a common event.
I would like to allow players to choose their prefered way to run my game (keyboard, mouse or gamepad) and allow them to easily access a special menu (via a custom Common event).
I have set on disabled the normal menu access.
It's ok for mouse and keyboard with the following plugin (it's my first plugin...) :
(function() {
var _clicdroit = Scene_Map.prototype.update
Scene_Map.prototype.update = function() {
_clicdroit.call(this);
if ((TouchInput.isCancelled()) || (Input.isTriggered('escape'))) {
$gameTemp.reserveCommonEvent(1);
}
}
})();
But I don't see how to assign a gamepad button... I've tried something like this :
(Input.isTriggered('$Y'))
and it don't work.
I've searched here on the forum but i only find big plugins with no explanation of the way i could call a gamepad button.
Thank you for your help !
Arnaud