PDA

View Full Version : Another Qt Joystick Question



chriskon149
26th August 2011, 06:28
Hey guys,

I'm having trouble creating an application that allows Qt to read usb Joysticks (think the Microsoft Flight sticks). I can't seem to find a library that works (or I just can't get the libraries installed correctly). Does anyone know of a library that can read joystick values? I'd greatly appreciate it! :)

Yes I've searched around on the forums, but I still can't get it to work. :mad:

Thanks for the help!

Chris

P.S. My OS is Win7 64 bit and I have the non-commercial version of Qt. Mac OSX compatibility would be awesome in a library, if that's not too much to ask. :)

high_flyer
26th August 2011, 10:58
This has nothing to do with Qt.
The Joystick has to come with a driver, and possibly with a lib.
You need to look at the manufacturer site for info, or on related forums.
A quick goole returned this, for a different (not MS) USB Joystick.
I am sure if you google a bit you will find what you are looking for.
http://www.open.com.au/mikem/arduino/USBJoystick/index.html

chriskon149
14th November 2011, 04:50
For anyone in the future that comes around looking for Qt Joystick support, check out Joypick here: http://code.google.com/p/joypick/

I've used it in my code and it works like a dream with the Logitech Extreme 3D Pro joystick and the wired XBox360 joystick on Windows. It uses SDL, so the library itself is cross platform. Check out the Google Code page for more details.

Thanks,

Chris