Human input devices can be used as controllers for making music. This class can be used in conjunction with HIDFunc or HIDdef to match incoming messages with a particular HID device.
HIDProto has all the variables that specify an HID device. The more of these variables you specify, the more need to be matched when filtering the incoming HID data.
Create a new instance of HIDProto.
Create a new instance of HIDProto based on usage and usagePage of the device.
uName |
Name of the usage id |
pName |
Name of the usage page id |
an HIDProto
Create a new instance of HIDProto based on the product information.
pName |
The product name to match. |
vName |
The vendor name to match. |
an HIDProto
Create a new instance of HIDProto based on an IdentityDictionary with a set of parameters to match.
dict |
An IdentityDictionary with a set of parameters to match. The keys in the dictionary should be one of the instance variables of HIDProto. |
an HIDProto
The device id that should be matched. This is dependent on the order of opening HID devices.
The product name to match (see also HIDInfo).
The vendor name to match (see also HIDInfo).
The product id to match (see also HIDInfo).
The vendor id to match (see also HIDInfo).
The interface number to match (see also HIDInfo).
The release number to match (see also HIDInfo).
The serial number to match (see also HIDInfo).
The path to match (see also HIDInfo).
The usage ID of the device to match (see also HIDInfo).
The usage page ID of the device to match (see also HIDInfo).
The usage name of the device to match (see also HIDInfo).
The page name of the device to match (see also HIDInfo).
Match the argument with the template.
hid |
An instance of HID. |
a Boolean indicating whether the incoming HID matches the template
The variables that should be matched when filtering
a Set with variable names.
Add a match for usage name and usage page name of the device.
uName |
The usage name to match |
pName |
The page name to match |
Add a match for product name and vendor name of the device.
pName |
The product name to match |
vName |
The vendor name to match |
Add an IdentityDictionary with a set of parameters to match. The keys in the dictionary should be one of the instance variables of HIDProto.
dict |
An IdentityDictionary with a set of parameters to match. |