Re: [w3c/gamepad] Add gamepad light indicator extension (#143)

@marcoscaceres commented on this pull request.



> +        </dd>
+      </dl>
+    </section>
+    
+    <section>
+      <h2><dfn>GamepadLightIndicator</dfn></h2>
+      <p>
+        This interface defines a light indicator.
+      </p>
+      
+      <pre class="idl">
+        [Exposed=Window, SecureContext]
+        interface GamepadLightIndicator {
+          readonly attribute GamepadLightIndicatorType type;
+        
+          Promise&lt;long&gt; setColor(GamepadLightColor color);

Given the discussion below, the promise should probably just resolve with `undefined`. 

```suggestion
          Promise&lt;undefined&gt; setColor(GamepadLightColor color);
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/143#pullrequestreview-602513548

Received on Wednesday, 3 March 2021 05:10:29 UTC