Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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?

(1 edit)

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

};

Thanks for the guide! 

I have a question though about if this is a bug or not but when I assign shift (X) on controller for rotation on the move command on the case scene it works great however,I can no longer use that button when walking around to dash because it doesn't register anymore

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.