signal11/hidapi — pull request #28 by vlovich (2011-11-23 02:17:09+00:00)
Title: Fix output report length bug & hid read on Windows

On Windows, data shorter than the output report length must be padded to the output report length of the device. This copies data shorter than this length into a temporary buffer. Longer reports behave as before (not sure if it needs to be a multiple of the output report length or what - should be so left it alone).

Also, fix the hid read to never copy in more than was read from the hid device.