Re: [w3c/gamepad] Add extended buttons to support trackpad (#191) (PR #196)

@marcoscaceres commented on this pull request.



> @@ -820,8 +820,13 @@ <h3>
           <li>[=list/For each=] |rawInputIndex:long| of [=the range=] from 0 to
           |inputCount| − 1:
             <ol>
-              <li>If the the gamepad button at index |rawInputIndex|
-              [=represents a Standard Gamepad button=]:
+              <li>Determine the type of the button at index |rawInputIndex|
+              [=represents a Standard Gamepad button=] or Extended button
+              types as described in the {{ExtendedMapping}} using the provided
+              buttonTypes array. If the button does not have a canonical type,
+              use GamePadButtonType.non_canonical.
+              </li>
+              <li>If the button type is not GamepadButtonType.non_canonical:

```suggestion
              <li>If |type| is not {{GamepadButtonType/"non_canonical"}}:
```

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

Message ID: <w3c/gamepad/pull/196/review/2030275165@github.com>

Received on Tuesday, 30 April 2024 06:04:59 UTC