Re: [w3c/gamepad] Rewrite the spec with references to the Model section (PR #222)

@nondebug commented on this pull request.



> +              <li>Let |rawAxis| be the [=axis=] at index |rawAxisIndex| of the
+              [=axis list=].

I think this doesn't work because [=axis list=] doesn't refer to a specific list, maybe like this:

* Let |axisList| be the [=axis list=] of the [=gamepad=] represented by |gamepad|.
* [=list/For each=] |sourceIndex| of the [=list/indices=] of |axisList|:
  * Let |mappedIndex| be |gamepad|.[[axisMapping]][|sourceIndex|].
  * Set |gamepad|.[[axes]][|mappedIndex|] to the current [=normalized axis value=] for |axisList|[|sourceIndex|].

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

Message ID: <w3c/gamepad/pull/222/review/2744262662@github.com>

Received on Friday, 4 April 2025 23:19:08 UTC