Game Development Community

Acquiring Hat Switch for PS2 USB controller

by Jonathan Kelly · in Torque Game Engine · 12/16/2004 (3:41 pm) · 3 replies

Hey I'm currently working on getting a PS2 controller to work with our game. One big problem I'm having is using the analog sticks used in conjuntion with the d-pad.

I've checked what the input message is: a point of view hat message or hat switch. Upon checking actionmap.cc I saw pov events; however, even after hard-coding them in config.cs I'm still not getting any movement. Any help?

Also Super Bonus Question!: How do I change the xaxis and yaxis rotation so that it continuously rotates instead of stop ala the mouse look?

Thanks in advance.

#1
12/17/2004 (9:03 am)
Any ideas?
#2
12/20/2004 (2:23 pm)
I'd suggest reading through default.bind.cs for the latter, and liberally sprinkling Con::printfs for the former.
#3
12/21/2004 (6:59 am)
Thanks, I'll check it out. Still not getting any inputs for the pov switch though.

Edit3: Nevermind I'm an idiot. :(