Babylon.js icon indicating copy to clipboard operation
Babylon.js copied to clipboard

Restructure the Gamepad support

Open RaananW opened this issue 4 years ago • 0 comments

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:

image

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)

RaananW avatar May 20 '21 15:05 RaananW