Changing Default Gamepad key assignments

Whenever I share my game the Gamepad assignments go back to the default (Button 1,2,3 goes back to A,B,C etc.).  I am aware that these can be accessed by F1, but I want all versions of my game to start with the same controls.  I would like to know where in the game I can edit this so that the default is:

Button1:  C          Button6:  A

Button2:  Y          Button7:   -

Button3:  X          Button8:   -

Button4:  B          Button9:   -

Button5:  A          Button10: -
The settings change via F1 are saved for the local pc only and won't be the same on the pc the game is played. Only way to change the settings would require a script that is able to overwrite the default settings. I would post one but the one I had isn't accessable anymore.
Those settings affects all games, so you have this weird situation where some players may get very annoyed if the settings suddenly change while others may appreciate the defaulting.

I would suggest asking the player if the settings should be reset to the default settings or alternatively have a reset button available on some option screen. You know, similar to the one actually being present on the F1\Gamepad tabpage.

For actually programmatically doing feel free to use my RGSS2 script as base: http://pastebin.com/YFNaxaKF

Be aware that the ButtonAssign property is only created when the player changes the F1 settings.

The best case would be having a separate script which can use the F1 settings on demand but be default ignores them. This prevents the sharing of control schemes among rmvxace games issue.

*hugs*

 - Zeriab

Original thread: https://forums.rpgmakerweb.com/threads/changing-default-gamepad-key-assignments.15040/