Re: [PATCH v2 1/3] Input: add ABS_TWIST event code
From: Siarhei Vishniakou
Date: Tue Dec 01 2026 - 20:08:38 EST
>
> Probably nit-picking but It might make sense to explicitly state that
> the physical ranges [0, 360) and [-180, 180) only apply for hardware
> without a restricted angular range to better dovetail with the next
> statement.
>
Thanks Jason! I agree that the wording is currently vague (and
borderline contradictory).
I will revise the docs to make it clear how a device that doesn't
support the full 360-degree range is supposed to declare this in the
driver.
For now, I'm thinking something along the following lines:
If you support the full range:
- Resolution is optional
- Set min/max to match the full revolution, and calculate
resolution appropriately (or set to 0).
- Rotating past max wraps back to min.
If you only support a portion of the range:
- Resolution is required
- Set min / max to the supported range and also specify the resolution.
I will send out a v3 with the corrected docs after Peter has provided
feedback to reduce the churn.