You need to read the USB HID Class document. It should have everything you need.