This program is an example of how to use an USB device in Qt.
It is limited only to the HID devices class (joystick, mouse, keyboard...)
It uses the standard Microsoft HID driver. If you use another driver you must know how it works.
It demonstrates how to:
-recognize a device by VID&PID
-read/write
-attach/detach notification
Two examples are provided:
-first example reads the XY position of a joystick
-second example sends a message to the device and waits for the answer.
See comments in source for details.
Licence: GPL.
I hope that this program can be useful to someone.
Bookmarks