Amazing work and fast bro,am very impressed! This plugin is working great now and the items in this are now working on your Battle On Map Plugin. Question though,how do you find out the numbers for the gamepad buttons?
Hey bro, thanks, I'm happy to help and I appreciate the feedback.
I haven't tested it on an Xbox controller, so I can't say for sure, but following basic mapping logic, it should be something like this.
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 hadn't thought of that; it seems to be an overlapping conflict. The key you mapped in my plugin is overwriting the game's original mapping that makes the character run. I believe it's possible to isolate the mapping so that when you open the menu, when you exit, the mapping would revert to the previous one and there wouldn't be any conflicts. I'll test if this works between today and tomorrow and get back to you.