Game Development Community

XBox 360 Controller

by Michael Smith · in Torque 2D Beginner · 08/04/2013 (11:18 pm) · 5 replies

I am adding support for an XBox 360 controller to my project on Windows. Does anyone have an input map already made for such a beast? Or even just a generic gamepad script? I could work it out step by step based on the input guide but it feels like reinventing the wheel.

About the author

Bible translator by day-- game programmer by night


#2
08/05/2013 (7:44 am)
I'm not 100% sure that the joystick code in T2D supports rumble as it doesn't use Xinput as T3D does.

That being said, the action map linked above should work besides the rumble feature.

Just make sure to enable joystick inout as listed in the Input guide.
#3
08/05/2013 (1:56 pm)
Thanks, guys!
#4
08/05/2013 (2:14 pm)
@Michael,
If you can please write a resource for T2D using the Xbox 360 controller. You can provide a link back to the original resource for the T3D resource to reduce your effort of what you need to document.
#5
08/18/2013 (10:46 pm)
I created a resource with a script for exercising gamepads. It has comments showing which events correspond to which inputs on the XBox 360 controller.

www.garagegames.com/community/resources/view/22400