I just want to change the Y button to the Start button by default so the player doesn't get confused trying to access the menu for the first time. I tried using this code as a plug-in but it doesn't seem to do anything. (I know there are plugins to modify the inputs in game, I have that, but I do think Y is a very odd default choice for gamepad).
I don't have any Javascript experience so I don't know what I'm doing wrong. I seems like the plug-in just isn't being read because Y is still the button that functions when loading the game.
Code:
Input.gamepadMapper = {
0: "ok", // A
1: "cancel", // B
2: "shift", // X
3: "menu", // Buttons[9]
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 don't have any Javascript experience so I don't know what I'm doing wrong. I seems like the plug-in just isn't being read because Y is still the button that functions when loading the game.