Babylon.js
Babylon.js copied to clipboard
Restructure the Gamepad support
At the moment we detected gamepad objects according to their ID string. This can lead to cases where we mis-match a controller. a good example are the following:

Our current mechanism detects both the surface dock and the touch cover as XBOX controller (mainly due to the vendor ID).
I am suggesting a revamp in our gamepad manager and gamepad support. The main change is that we need to be feature-driven and not analyze the gamepad id. Detect the number of buttons, axes, and add help classes to simplify the process of getting input from those generic inputs (buttons/axes)