Quick background
I am currently working on a VR application with A-frame to showcase VR hardware. We use custom controllers that connects through websocket/bluetooth and would like to make them compatible with the tracked-controls. Those A-Frame components use the Gamepad API to update model positionning and orientation and are compatible with other components that simulate hands, etc.
Why register the gamepad using javascript?
The tracked-controls use the gamepad api to update themselves so being able to put our own gamepad in the navigator.getGamepads list and updating the data of the gamepad would be perfect. However, the current controllers are constantly changing and having a browser specific implementation like the vive is impossible.
Is it possible to register a custom gamepad in javascript with the Gamepad API?