- From: Maksim Sadym <notifications@github.com>
- Date: Mon, 22 Sep 2025 04:28:12 -0700
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 22 September 2025 11:28:16 UTC
@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