jsyang / gearvr-controller-webbluetooth

Gear VR controller web bluetooth demo
GNU General Public License v3.0
110 stars 39 forks source link

Want to create js library to allow reuse #5

Open sykosoft opened 4 years ago

sykosoft commented 4 years ago

Thank you for the excellent reverse engineering.

I'm considering turning this into a reusable library to be able to include in future projects (including user js allowing me to try to use this with Google Slides). (Thanks to Best buy for selling these super cheap)

In your experience, can the pairing be automatic between page refreshes, or does it need to be manually performed each time?

Any input you can provide towards my possible efforts is appreciated. The demo worked perfectly on latest chrome stable on Android 10 on a Pixel 3 XL as of today.

jsyang commented 4 years ago

Thanks for your feedback, I haven't explored that idea much but this should be enough to get going in the right direction: https://googlechrome.github.io/samples/web-bluetooth/automatic-reconnect.html