Commit c83f881
committed
windows-reconstructor: add fallback estimation for report item bit offset
HidP_SetUsageValueArray() fails with HIDP_STATUS_NOT_IMPLEMENTED when supplied with:
HID_USAGE_XXX,
HID_COLLECTION_LOGICAL(
HID_USAGE_YYY,
HID_REPORT_SIZE(8),
HID_REPORT_COUNT(1),
HID_LOGICAL_MIN_8(0),
HID_LOGICAL_MAX_8(0xFF),
HID_OUTPUT(Data_Var_Abs | Volatile_Flag),
HID_USAGE_ZZZ,
HID_REPORT_SIZE(2),
HID_REPORT_COUNT(16),
HID_LOGICAL_MIN_8(-1),
HID_LOGICAL_MAX_8(1),
HID_OUTPUT(Data_Var_Rel | NullState_Flag | Volatile_Flag),
),
particularly the second item. With this patch the report descriptor is parsed correctly though.
Signed-off-by: Benedek Kupper <kupper.benedek@gmail.com>1 parent 534131c commit c83f881
1 file changed
Lines changed: 12 additions & 1 deletion
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
172 | 183 | | |
173 | 184 | | |
174 | 185 | | |
| |||
0 commit comments