Re: [w3c/gamepad] Integrate with WebDriver and WebDriver BiDi for automation (PR #224)

@sadym-chromium commented on this pull request.



> @@ -587,6 +795,16 @@ <h3>
             </ol>
           </li>
         </ol>
+        <p>
+          To <dfn>normalize a logical axis value</dfn> given |value|, |minimum|, and |maximum|:
+        </p>
+        <ol>
+          <li>
+            Return 2 (|value| − |minimum|) / (|maximum| − |minimum|) − 1.

Should not it be this, so that the normalized output of input with min `1`, max `5` and val `3` returns `1/2`?
```suggestion
            Return (|value| − |minimum|) / (|maximum| − |minimum|).
```

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

Message ID: <w3c/gamepad/pull/224/review/3252083985@github.com>

Received on Monday, 22 September 2025 11:28:16 UTC