googlearchive / platinum-bluetooth

A set of Polymer elements to discover and communicate with nearby Bluetooth devices
https://elements.polymer-project.org/elements/platinum-bluetooth
Apache License 2.0
22 stars 13 forks source link

Daydream controller sender (emulator) #31

Closed FluorescentHallucinogen closed 7 years ago

FluorescentHallucinogen commented 7 years ago

There is a Google Daydream controller receiver written in JavaScript using Web Bluetooth API: https://github.com/mrdoob/daydream-controller.js

Is it possible to write Daydream controller sender (emulator) completely in JavaScript using Web Bluetooth API and Motion Sensors APIs based on Generic Sensor API (https://www.chromestatus.com/feature/5698781827825664) that allows to use a device with relevant sensors (e.g. Android smartphone with gyroscope) in place of a Daydream controller?

If yes, is it possible to do that using <platinum-bluetooth> elements?

Now I'm using native Daydream controller emulator Android app: https://developers.google.com/vr/daydream/controller-emulator.

FluorescentHallucinogen commented 7 years ago

@beaufortfrancois PTAL.

beaufortfrancois commented 7 years ago

It is not possible sadly yet to write this emulator in JavaScript using Web Bluetooth as it only support GATT Client role for now (not Server). See https://github.com/WebBluetoothCG/web-bluetooth/issues/78