Background Story
Working on a virtual reality app with A-frame to showcase VR gadgets. Custom controllers connect via websocket/bluetooth and we want them compatible with tracked-controls. These components use Gamepad API for model positioning and are friendly with hand-simulation components.
Reason for Registering Gamepad through JavaScript
Tracked-controls require Gamepad API for updates, so adding custom gamepads to navigator.getGamepads list for data updates would be ideal. However, current controllers evolve rapidly, making browser-specific implementations like Vive models impossible.
Can we register a custom gamepad in JavaScript using the Gamepad API?