Author Topic: using a USB controller with xinput.h  (Read 2452 times)

0 Members and 1 Guest are viewing this topic.

Offline animaniacTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
using a USB controller with xinput.h
« 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++?

Offline animaniacTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
Re: using a USB controller with xinput.h
« Reply #1 on: November 05, 2011, 04:49:04 AM »
I tried using this code:

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++?

 


Get Your Ad Here