#include <subdrivers.h>
Data Fields | |
int | compare |
Compare type for the Usage path. | |
int | product_id |
Product ID (set to -1 if not specified). | |
int | report_id |
Report ID for which the path should apply. | |
usb_hid_subdriver_t | subdriver |
Subdriver for controlling this device. | |
const usb_hid_subdriver_usage_t * | usage_path |
Usage path that the device's Input reports must contain. | |
int | vendor_id |
Vendor ID (set to -1 if not specified). |
By filling in this structure and adding it to the usb_hid_subdrivers array, a new subdriver mapping will be created and used by the HID driver when it searches for appropriate subdrivers for a device.
Definition at line 58 of file subdrivers.h.
Usage path that the device's Input reports must contain.
It is an array of pairs <usage_page, usage>, terminated by a <0, 0> pair. If you do not wish to specify the device in this way, set this to NULL.
Definition at line 65 of file subdrivers.h.