- From: Chris Dumez <notifications@github.com>
- Date: Tue, 10 Jan 2023 14:20:12 -0800
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 10 January 2023 22:20:24 UTC
It is currently not marked as nullable in the Web DIL here: - https://w3c.github.io/gamepad/extensions.html#partial-gamepad-interface However, the specification for "Construction" seems to indicate it can be null: > Add new steps to a new Gamepad: > If gamepad has a vibration actuator that can [play effects with type](https://w3c.github.io/gamepad/extensions.html#dfn-play-effects-with-type) "[dual-rumble](https://w3c.github.io/gamepad/extensions.html#dom-gamepadhapticeffecttype-dual-rumble)", initialize gamepad's [vibrationActuator](https://w3c.github.io/gamepad/extensions.html#dom-gamepad-vibrationactuator) attribute to [a new GamepadHapticActuator](https://w3c.github.io/gamepad/extensions.html#dfn-a-new-gamepadhapticactuator) with "[dual-rumble](https://w3c.github.io/gamepad/extensions.html#dom-gamepadhapticactuatortype-dual-rumble)". Otherwise, initialize gamepad's [vibrationActuator](https://w3c.github.io/gamepad/extensions.html#dom-gamepad-vibrationactuator) attribute to null. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/gamepad/issues/178 You are receiving this because you are subscribed to this thread. Message ID: <w3c/gamepad/issues/178@github.com>
Received on Tuesday, 10 January 2023 22:20:24 UTC