immersive-web / webxr-gamepads-module

Repository for the WebXR Gamepads Module
https://immersive-web.github.io/webxr-gamepads-module
Other
30 stars 10 forks source link

Add support for a PCM buffer to the gamepad actuator #58

Open cabanier opened 1 year ago

cabanier commented 1 year ago

From https://github.com/w3c/gamepad/issues/186: The Quest Pro controller comes with a new VCM motor for haptics that has a variable frequency and intensity. The OpenXR API is documented here

We'd like to expose this to WebXR developers so they can generate more immersive haptics and would like to propose the following function to the GamepadHapticActuator IDL: Promise<GamepadHapticsResult> playPCM(audioBuffer);

From the feedback, it sounds like some people want a completely new interface but it doesn't match up with our workflow (ie it's based on touch events). How can we proceed? Should we continue to add to gamepadActuator that they want to deprecate? /facetoface discuss support for a PCM buffer for gamepad actuator