Gamepad Script?

Hi Maker!

I have a question. Is there a plugin, or a series of scripts, that allow me to modify the gamepad settings?
For example, if I connect the my xbox gamepad to my project, I can open the "menu" with the "Y" and not "Start".
How can I do? Thank you. 🙂
There is a plugin that comes with MV and adds a menu that does exactly that. Just open the folder where you installed MV, then DLC >RPGmakerWeb_plugins >Yanfly > GamepadConfig.js


Edit:
Actually that plugin doesn't let you change the default configs, but instead adds a menu that lets the user change them.

The only way I know how to change the default configs is by changing them within rpg_core.js, in this part:

Code:
Input.gamepadMapper = {
    0: 'ok',        // A
    1: 'cancel',    // B
    2: 'shift',     // X
    3: 'menu',      // Y
    4: 'pageup',    // LB
    5: 'pagedown',  // RB
    12: 'up',       // D-pad up
    13: 'down',     // D-pad down
    14: 'left',     // D-pad left
    15: 'right',    // D-pad right
};
I have no words. Thank you so much 🙂

There is a plugin that comes with MV and adds a menu that does exactly that. Just open the folder where you installed MV, then DLC >RPGmakerWeb_plugins >Yanfly > GamepadConfig.js


Edit:
Actually that plugin doesn't let you change the default configs, but instead adds a menu that lets the user change them.

The only way I know how to change the default configs is by changing them within rpg_core.js, in this part:

Code:
Input.gamepadMapper = {
    0: 'ok',        // A
    1: 'cancel',    // B
    2: 'shift',     // X
    3: 'menu',      // Y
    4: 'drop',    // LB
    5: 'fire',  // RB
    12: 'up',       // D-pad up
    13: 'down',     // D-pad down
    14: 'left',     // D-pad left
    15: 'right',    // D-pad right
};
I have no words. Thank you so much 🙂

Oh actually sorry, I've copied the edited version I'm using in a project of mine. On yours, it should probably be this:
Code:
Input.gamepadMapper = {
    0: 'ok',        // A
    1: 'cancel',    // B
    2: 'shift',     // X
    3: 'menu',      // Y
    4: 'pageup',    // LB
    5: 'pagedown',  // RB
    12: 'up',       // D-pad up
    13: 'down',     // D-pad down
    14: 'left',     // D-pad left
    15: 'right',    // D-pad right
};

Original thread: https://forums.rpgmakerweb.com/threads/gamepad-script.111100/