Skip to content

Commit a19717f

Browse files
committed
uclogic: Clarify validity of touch parameters
1 parent 33d02d5 commit a19717f

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

hid-uclogic-params.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,21 @@ struct uclogic_params_frame {
139139
* this offset is zero. Only valid if "id" is not zero.
140140
*/
141141
unsigned int touch_byte;
142-
143-
/*
144-
* Maximum value of the touch ring/strip report.
145-
* The minimum valid value is considered to be one,
146-
* with zero being out-of-proximity (finger lift) value.
147-
*/
148-
__s8 touch_max;
149-
150142
/*
151143
* The value to anchor the reversed touch ring/strip reports at.
152144
* I.e. one, if the reports should be flipped without offset.
153145
* Zero if no reversal should be done.
146+
* Only valid if "touch_byte" is valid and not zero.
154147
*/
155148
__s8 touch_flip_at;
149+
/*
150+
* Maximum value of the touch ring/strip report around which the value
151+
* should be wrapped when flipping according to "touch_flip_at".
152+
* The minimum valid value is considered to be one, with zero being
153+
* out-of-proximity (finger lift) value.
154+
* Only valid if "touch_flip_at" is valid and not zero.
155+
*/
156+
__s8 touch_max;
156157
/*
157158
* Offset of the bitmap dial byte, in the report. Zero if not present.
158159
* Only valid if "id" is not zero. A bitmap dial sends reports with a

0 commit comments

Comments
 (0)