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.
HIDElementProto has all the variables that specify an HID element. The more of these variables you specify, the more need to be matched when filtering the incoming HID data.
Create a new instance of HIDElementProto.
Create a new instance of HIDElementProto based on usage id and usage page id of the element.
uName |
Name of the usage ID to match |
pName |
Name of the usage page to match |
an HIDElementProto
Create a new instance of HIDElementProto based on usage id and usage page id of the element.
uID |
Usage ID to match |
pID |
Usage page ID to match |
an HIDElementProto
Create a new instance of HIDElementProto 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 HIDElementProto. |
an HIDElementProto
The element index that should be matched. This index may vary between operating systems (see also HIDElement).
The usage name of the element to match (see also HIDElement).
The usage page name of the element to match (see also HIDElement).
The usage index of the element to match (see also HIDElement).
The usage page index of the element to match (see also HIDElement).
The minimum usage index of the element to match (see also HIDElement).
The maximum usage index of the element to match (see also HIDElement).
The type of the element to match (see also HIDElement).
The typeSpec of the element to match (see also HIDElement).
The IO type of the element to match - input (1), output (2) or feature (3) (see also HIDElement).
The IO type of the element to match - \input
, \output
or \feature
(see also HIDElement).
Match the argument with the template.
ele |
An instance of HIDElement |
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 element.
uName |
The usage name to match |
pName |
The page name to match |
Add a match for usage id and usage page id of the element.
uID |
The usage id to match |
pID |
The usage page id 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 HIDElementProto.
dict |
An IdentityDictionary with a set of parameters to match. |