- From: Maksim Sadym <notifications@github.com>
- Date: Mon, 22 Sep 2025 06:00:33 -0700
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/gamepad/pull/224/review/3252619917@github.com>
@sadym-chromium commented on this pull request. > + </h4> + <p> + To <dfn>process a gamepad action</dfn> given |id| and |action item|: + </p> + <ol> + <li> + Let |subtype| be the result of getting the property named "type" from |action item|. + </li> + <li> + If |subtype| is not one of the values `"axis"`, `"button"`, `"touchStart"`, `"touchMove"`, `"touchEnd"`, or `"pause"`, return an [=error=] with [=error code=] [=invalid argument=]. + </li> + <li> + Let |action| be an [=action object=] constructed with arguments |id|, `"gamepad"`, and |subtype|. + </li> + <li> + If |subtype| is `"pause"`, let |result| be the result of [=trying=] to [=process a pause action=] with arguments |action item| and |action|, and return |result|. This and other calls can be simplified: ```suggestion If |subtype| is `"pause"`, return the result of [=trying=] to [=process a pause action=] |action item| and |action|. ``` -- Reply to this email directly or view it on GitHub: https://github.com/w3c/gamepad/pull/224#pullrequestreview-3252619917 You are receiving this because you are subscribed to this thread. Message ID: <w3c/gamepad/pull/224/review/3252619917@github.com>
Received on Monday, 22 September 2025 13:00:37 UTC