Linux 5.1.0f3 WebGL player: mapped controls not working correctly for either keyboard or controller

I am building a game using Linux version 5.1.0f3 of Unity that makes use of keyboard controls and an xbox controller. In a stand alone player for Linux the keys and the controller correspond to what has been mapped in the project settings. However, when I build a WebGL version of the player some weird stuff happens. I describe it below.

Some of the buttons work for the controller: x, y, a, b, left and right bumpers.
The left and right analogues are behaving as if they’re mapped to random axes and some are inverse. The right trigger buttons are calling the functions mapped to the start button.

What this suggests to me is the joystick axis numbers are different for WebGL, is this true?

Some of the buttons work for the keyboard: number buttons, arrow keys.
However the w, s, a, d axes are behaving like with the controller and the + and - keys aren’t working.

Any clues what is going on here?

I have an idea. Download the latest build which is 5.3.2 and then complain about something that doesn’t work!

What a stupid answer…
Aren’t aware that Linux build is 5.3.0f3 ?

Actually, the latest build is currently 5.3.2.

So sorry I couldn’t find the latest build… and by the way, I am not “complaining”.

Thanks LukaKotar for being helpful!

It looks 5.3.3 is the latest version for Linux. See this thread below (and see msg #8)

http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/

1 Like

Great, thank you!

That, and it really is the newest version, not one behind like it was before. :wink:

So, the keyboard inputs work with WebGL in the latest version. But not with an xbox controller. I have seen this reported as a bug and it is apparently fixed in 5.4. Looks like I just have to wait until 5.4 is released for Linux to see if it has been fixed.