Re: [w3c/gamepad] Add a Model section (#136)

@marcoscaceres commented on this pull request.



> +        host is capable of reading new inputs. A gamepad that is not connected
+        is <dfn data-lt="disconnected">disconnected.
+      </p>
+      <p>
+        The host MUST provide an algorithm for synchronously
+        <dfn data-lt="reading input data">reading input data</dfn> from the
+        gamepad. If the host does not provide such an algorithm, the user agent
+        MAY implement an algorithm that caches the most recent input data and
+        synchronously returns the cached value.
+      </p>
+      <p>
+        When a gamepad transitions from disconnected to connected, it
+        <dfn data-lt="becomes connected">becomes connected</dfn>. Likewise,
+        when a gamepad transitions from connected to disconnected, it
+        <dfn data-lt="becomes disconnected">becomes disconnected</dfn>. The
+        host MUST provide algorithms to register listeners for these

```suggestion
        host provides algorithms to register listeners for these
```

-- 
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/136#pullrequestreview-433705855

Received on Thursday, 18 June 2020 23:14:35 UTC