Game Development Community

Gamepad control best option?

by Phil Ferris · in Torque Game Engine · 08/11/2008 (12:56 am) · 3 replies

I am currently trying to add gamepad control for my TGE project, I would like the control to start at the start up screen.

While searching I have found 3 to 4 ways to use gamepads none of them seem as though they have control from the start up screen, and they also seem to be having problems working.

I was hoping someone out there has had success in with adding gamepad control.

Any help would be great

#1
08/11/2008 (5:31 am)
I'm using a gamepad in the main menu right now! All you have to do is make an actionmap with the gamepad controls, and make sure that it's push()'ed when you load up the menu.
#2
08/11/2008 (9:08 am)
So I need to make a action map specifiying what each button does, and I need to make sure to push a button on the gamepad as the menu is loading.

Is that correct, I just want to make sure I didnt misunderstand.

Thanks for your help Nathan
#3
08/11/2008 (9:19 am)
Actually the push() posted by Nathan is a command used to enable the actionmap that you have to create for your controls.

You can see the moveMap.push(); as an example in the playGui.cs