ThatBatLuna / Beadi

https://beadi.onrender.com
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

Idea/Suggestion: Option to use built-in sensors (such as accelerometer/gyro on mobile) #15

Open someMinecrafter opened 1 year ago

someMinecrafter commented 1 year ago

This issue is opened as an idea to add support for the typical sensors found in many smartphones, such as gyro and accelerometer. This would enable simpler interactivity in my use case between myself and another without the need to DIY an entirely unique thing.

Finally, is this within the scope of this project, or should I look to creating an app that pretends it is an intiface compatible device instead?

Thank you.

ThatBatLuna commented 1 year ago

This is very much within the scope of the project. Support for intiface compatible sensors does already exist on the staging branch within SensorNode.tsx (though this is a rather rough draft and not thoroughly tested, especially as the API changes in buttplug-js are mixing things up a bit).

Creating intiface-compatible sensors however is a very cumbersome and (afaik) undocumented process so phone gyros etc should probably be implemented within the app (as far as browser apis expose them of course)

As a first prototype simply putting them in a node which simply reads out the browser apis should be fine, feel free to whip up a draft PR :D

ThatBatLuna commented 1 year ago

Generally the whole area of "input" is currently severely underrepresented in the app... my focus will lie on implementing a remote-control ability (following the mobile interface on the staging branch), so im sure sooner or later that will get somehow combined with the sensors, but let's not get ahead of ourselves

ThatBatLuna commented 10 months ago

This will be implemented by #18