Controller input scrambled after building issue

When I build my project for WebGL and the play it in my browser, the controller inputs are being reordered. Keyboard input works fine but not on my controller (using a PS4 controller). Joystick inputs work fine but all of the buttons are out of order. Any idea for how to fix this? Thanks.

Are you using the new Input System or the legacy one?

1 Like

I’m using the legacy one.

Anyone have any ideas to help with this?

I believe if your PS4 controller is being identified as an XBox controller by Windows, this can “scramble” the button mapping. I don’t know of a solution or root cause for this offhand, but hopefully this will give a direction for your search.

I don’t have any personal experience with this issue in Unity as a developer, but it did affect me as a player in Ori 2 when using a PS4 controller to play; under certain conditions the controller would change profiles and all the buttons would become mapped differently.

1 Like

Thanks Madgvox I’ll look into that!