|
@@ -718,6 +718,9 @@ static int hid_scan_main(struct hid_parser *parser, struct hid_item *item)
|
|
case HID_MAIN_ITEM_TAG_END_COLLECTION:
|
|
case HID_MAIN_ITEM_TAG_END_COLLECTION:
|
|
break;
|
|
break;
|
|
case HID_MAIN_ITEM_TAG_INPUT:
|
|
case HID_MAIN_ITEM_TAG_INPUT:
|
|
|
|
+ /* ignore constant inputs, they will be ignored by hid-input */
|
|
|
|
+ if (data & HID_MAIN_ITEM_CONSTANT)
|
|
|
|
+ break;
|
|
for (i = 0; i < parser->local.usage_index; i++)
|
|
for (i = 0; i < parser->local.usage_index; i++)
|
|
hid_scan_input_usage(parser, parser->local.usage[i]);
|
|
hid_scan_input_usage(parser, parser->local.usage[i]);
|
|
break;
|
|
break;
|