HID LED Test Tool-Read Me
HID LED Test Tool-Read Me
This application is a command line tool which demonstrates the HID Manager APIs
introduced in Leopard (10.5).
----
Packing List
------------
The sample contains the following items:
Our outer loop executes 256 passes; the inner loop iterates over all of the device
references that we extracted from the set of devices that we'd copied from our HID
Manager reference. After double checking to be sure that the device is a keyboard
we copy all the matching elements into a CFArray and then iterate over all the
elements in that array. For each element in the array of elements we double check
it's usage page to be sure that it's an LED and then get its min/max logical range.
This range is used as a modulus to compute the LED's desired value (based on the
current pass). This elementvalue is then sent to the device and all loops continue.
If an LED element was sent a value then we delay half a second between passes.
Caveats
-------