MOUSE SENSITIVITY CONVERTER / PITCH LIMITS
Test sensitivity away from the pitch limit
Equal forward and reverse mouse strokes can leave a different camera angle if the first stroke hits a pitch limit. Test converted sensitivity near a neutral pose, with room for both strokes. A clamped angle has discarded motion that the reverse stroke cannot recover.
Published November 6, 2026 · AimConvert · an independent developer
Open the sensitivity converter ↗State which value is clamped
A clamp restricts a number to a lower and upper bound. Godot documents this behavior for clampf. The calculations below apply that operation to the stored pitch after every input increment. A controller that keeps an unlimited internal angle and clamps only the displayed camera uses a different state model. Inspect the implementation before attributing an observation to either model.
Replay a stroke at the upper limit
Choose a stored pitch of 70 degrees, bounds of −80 to +80 degrees and a gain of 0.5 degrees per input unit. Apply +40 units. The requested increment is +20 degrees and the candidate angle is 90. Clamping stores 80, so the observed increment is only +10 degrees. Now apply −40 units. Its requested increment is −20 degrees, taking the stored angle from 80 to 60 without clipping. The signed input sum is zero, but the final angle is 10 degrees below the initial angle.
Repeat the identical pair from zero degrees. The intermediate angle is 20 and the final angle is zero. Both increments remain inside the bounds, so the observed magnitudes match the selected gain. Starting at 70, the ratio of the first observed increment to its input is 10/40 = 0.25 degrees per unit. The second gives −20/−40 = 0.5. Inferring sensitivity from only the clipped stroke would report half the selected gain.
Compute the available headroom
For the upper direction, headroom is upper bound minus starting pitch. In the selected example that is 80 − 70 = 10 degrees. With a positive gain of 0.5, at most 10/0.5 = 20 positive input units fit before reaching the limit. A +12-unit stroke requests 6 degrees, reaching 76. Its −12-unit reversal returns to 70. Choose an input smaller than the threshold when checking an unclipped gain, and record the actual intermediate angle.
Changing the gain to 0.25 makes the threshold 40 units. The original +40 and −40 pair then goes from 70 to 80 and back to 70 exactly. That return does not show that the larger gain was misconverted. It shows that this chosen pair no longer exceeds the boundary. Compare gains using strokes that remain interior under both settings.
For comparison, keep an unlimited internal pitch starting at 70 and clamp only its display. The +40-unit stroke stores 90 internally while displaying 80. A subsequent −10 units reduces the internal value to 85 but still displays 80. Another −10 brings it to 80. A stored-state clamp would instead move from 80 to 75 on the first −10. These distinct constructed responses explain why the location of the clamp matters to a diagnostic log.
Record a reproducible check
- Log starting stored pitch, input increment, candidate angle, stored result and displayed angle.
- Replay a small signed pair near the middle of the range. Then repeat closer to a boundary without changing gain.
- Use the interior response for a sensitivity comparison. Keep the boundary replay as a separate controller check.
Questions
Does a failed reversal prove acceleration?
No. The selected constant-gain replay already fails to return when its stored angle is clamped.
Can I infer cm/360 from a clipped vertical stroke?
That stroke does not reveal the full requested angular response. The converter matches horizontal hipfire turn distance under its stated preset model.
Should I disable a game's pitch limit?
Use a neutral pose and a smaller test stroke. The check requires enough room, rather than a change to the game's limits.
Source and method
All angles, gains and input sequences here are synthetic calculations. No particular game's clamp bounds or state architecture were measured. Godot clampf semantics. For a separate linear check, see axis direction and sensitivity magnitude.
Next, check angle wrapping before calculating gain.