-
Notifications
You must be signed in to change notification settings - Fork 10
Description
This is a feature request for a formalized API for haptic feedback on WebXR gamepad inputs, when available. Even very simple haptics can greatly increase immersion and usability in XR applications.
The Gamepad Extensions draft defines a simple interface for pulsing haptic actuators, and that did already have some decent browser support in WebVR. That spec contains other extensions (hand and pose) that seem obsolete, however, so it may be good to respec it in a webxr module.
Or, that may not be ideal in WebXR's more robust model -- e.g looking forward to more complex haptic hardware, haptics on gamepad-less input sources, etc. -- in which case it would need a new API.
Refs:
https://twitter.com/Tojiro/status/1249787874708303873
immersive-web/webvr#23
https://w3c.github.io/gamepad/extensions.html#gamepadhapticactuator-interface