Society of Robots - Robot Forum
Software => Software => Topic started by: animaniac on November 04, 2011, 02:55:38 PM
-
hi, I managed to control a bioloid spider-like robot with the keyboard, I'd like to control it with my dualshock 2 controller, plugged on my PC with a USB adapter. it works well on games, do you know a good example or tutorial to get the thumbstick and button values in C++?
-
I tried using this code:
http://forums.dashhacks.com/xbox360-tutorials-guides/287286-using-xinput-xbox-360-controller-support.html (http://forums.dashhacks.com/xbox360-tutorials-guides/287286-using-xinput-xbox-360-controller-support.html)
but my controller (dualshock 2) is never detected. do you know if this is only compatible with 360 controllers. I use a file called xinput1_3.dll in my game folders to make my controller identified as a 360 controller, maybe I could paste it somewhere to make it available in visual C++?