Every decent host OS already has a dedicated driver stack to provide game controller input to applications in a useful manner. Why the heck would you ship a reimplementation of that in JS in a website?

So that you can take input from countrollers that haven't been invented yet and won't fit the HID model.

If it hasn't been invented yet, you don't need driver software for it, do you? ;)

Anyway, in your scenario the controller would be essentially a one off and you'd be better off writing a native app to interface with it for the one computer this experiment will run on.

If it hasn't been invented yet we don't know the implications of giving a website access to it either.

And that's before realizing it's already a bad idea with existing devices because they were never designed for giving untrusted actors direct access.

That's why we have a privacy and security sandbox in browsers.