Open
Description
I noticed in some VR game -- I think VRChat -- that you can see the battery level for each controller.
I wanted to add this feature to my own site, but it seems that the WebVR spec doesn't provide the info.
Is there a way battery level could be provided to sites anyway? What would that look like?
We can do something like:
if (navigator.userAgent.startsWith("MixedReality")) { .... }
But that's cumbersome and prone to breakage; probably the worst way to do it.