What about a PS2 type controller
by aj · in Hardware Issues · 02/11/2003 (12:39 pm) · 8 replies
I am wondering if the torque engine already supports game controllers simular to the PS2 controller. The coolest thing about the game pads are the dual anolog sticks. I know that DirectX8 DirectInput and newer support all different types of controllers. (joysticks, wheels, yokes, pedels, etc...)
About the author
#2
Then just download the drivers (some are opensource I think) from here and away you go. All buttons work fully analog, both sticks (except the y axis on the right stick for some reason), and the rumble motors. Windows autodetects it as USB.
I play BF1942 with my controller all the time. It's sweet.
03/10/2003 (7:00 pm)
It is easy to get an XBox controller working. You just need to get an extra breakaway plug (MadCatz sells them as extensions), and an old USB cable, cut them, and splice them color for color. The controller has 1 extra wire, but it isn't required.Then just download the drivers (some are opensource I think) from here and away you go. All buttons work fully analog, both sticks (except the y axis on the right stick for some reason), and the rumble motors. Windows autodetects it as USB.
I play BF1942 with my controller all the time. It's sweet.
#3
03/10/2003 (7:01 pm)
Thats pretty cool that you can use a console controller on your comp.
#4
03/10/2003 (7:55 pm)
I posted a resource a couple days ago that adds Gamepad support to Torque. I don't think its been approved yet. I'm using a dual analog gamepad at the moment. It works pretty nice. I got the Robotron style controls going :)
#5
What's really cool about these adaptors is that both analog and digital input is supported with the Dual Shock.. my current project only requires digital, but it's good to know I could use the analog sticks if needed.
03/10/2003 (8:07 pm)
I use a PSX Dual Shock with my PC via a USB adaptor. Working with it in TGE required one small engine change (setting the check for polled devices to always return true.. or false. I forget right now..)What's really cool about these adaptors is that both analog and digital input is supported with the Dual Shock.. my current project only requires digital, but it's good to know I could use the analog sticks if needed.
#6
03/10/2003 (8:32 pm)
Always return true with polled devices for now... It's on my priority list of things to fix whenever I figure out how I'm going to do it. ;-)
#7
02/09/2004 (12:14 am)
I've done some work with gamepads, too. (Not recently, sadly.) There's some funkery with the POV hat code, which I worked on ironing out... hopefully I'll get this code out the door some day. Of course, I always seem to have more projects than time. :-/
#8
moveMap.bind(gamepad0, [what would go here], moveleft);
like for the analog sticks, d pad and buttons?
04/13/2005 (12:19 pm)
What commands do you use to bind actions to the PS2 type controller? moveMap.bind(gamepad0, [what would go here], moveleft);
like for the analog sticks, d pad and buttons?
Torque Owner Jarrod Roberson