Game Development Community

Xbox Controller problems

by superdeformed · in Torque Game Engine · 09/24/2004 (12:40 pm) · 4 replies

Hey

Im working with the an xbox controller thats plugged into a usb port . At the momment i have it working with with Nick "Dig" Koirala resource for adding in joystick and gamepad support (its seen as a joystick). i have remapped the controls to the xbox pad but i have a problem with the weels turning.

If i set the turning of the wheels to the xbox buttons (shoulder buttons) they turn at the normal rate but when i use the left thumbstick they seem to turn really slowly and not at all when at speed.

im using TGE 1.3 and starter.racing at the momment

any help would be appreciated

ill do some more digging my self aswell

regards
Kenneth
P.s no idea how to get vibration working (ill digg about with the Direct Input docs)

#1
09/24/2004 (8:42 pm)
This sounds like a joystick specific problem. You may have to provide functionality to scale the inputs. Set up a program to "echo" out the values of the joystick. This will tell you the ranges the different buttons put out. Test a few xbox controllers to see if this is consistent. Make a profile in your game for xbox controllers that a user can select. You may check and see if the response is similar in other games that do not "know" about the xbox controller. I don't know if you can autodetect this controller or not.

Good luck,
Frank
#2
10/19/2004 (9:04 pm)
I know this is off topic but how do you get an xbox controller to plug in to a usb port? Do I just go down to the local CompUSA and buy an adapter?
#3
10/19/2004 (9:47 pm)
I built one for myself using this tutorial. Of course, I had a broken XBox to get the parts from. You can also buy an already made one from that same site. The drivers are there, too.
#4
10/20/2004 (5:57 am)
@Sangwoo , u can order the xbox to usb cable from this site www.lik-sang.com