w3c / gamepad

Gamepad
https://w3c.github.io/gamepad/
Other
138 stars 49 forks source link

Shouldn't Gamepad.vibrationActuator be nullable? #178

Closed cdumez closed 1 year ago

cdumez commented 1 year ago

It is currently not marked as nullable in the Web DIL here:

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 "dual-rumble", initialize gamepad's vibrationActuator attribute to a new GamepadHapticActuator with "dual-rumble". Otherwise, initialize gamepad's vibrationActuator attribute to null.

cdumez commented 1 year ago

cc @marcoscaceres