Note that browsers may only allow access to available input devices once the user has interacted with the device while the content has focus.
I seem to have found a glitch, play test this:
https://simmer.io/@colpolstudios/controller-testerIf you move the right or left stick the Axis are shown.
However, now thinking I have interacted with the controller and I am not getting the controller names.
But a very interesting note is that the Axis for the right stick in a HTML file is the same despite which controller is in use:
Logitech dual action controller, PlayStation dual action and Xbox are all showing the same Axis for the right stick.
HTML:
up + down = Axis 5
Left + right = Axis 4
I also noted some issues when using a controller in HTML and inside the unity editor
Logitech dual action controller:
Unity editor:
up + down = Axis 4
Left + right = Axis 3
D-pad:
up + down = Axis 6
Left + right = Axis 5
HTML:
up + down = Axis 5
Left + right = Axis 4
D-pad:
up + down = Axis 7
Left + right = Axis 6
Special note:
When pressed right on the D-pad button 15 shows as active.
When pressed left on the D-pad button 14 shows as active.
When pressed up on the D-pad button 12 shows as active.
When pressed down on the D-pad button 13 shows as active.
This is only the case in the HTML and does not show inside unity.
It would be helpful if the community could help, by downloading the controller tester and noting the changes of other controllers.