Game Development Community

Game Control configuration

by Daniel Dewey · in TGB Platformer Kit · 02/11/2009 (7:15 pm) · 5 replies

So I'm trying to make a game using the TGB PSK. I'd like the user to be able to switch between Xbox 360 controller and Keyboard. And it doesn't have to even switch, having both setup to work at the same time without user configuration would be best. I was wanting to setup both configurations while still using the supplied Controller Behavior. Can anyone help me set this up?

Thanks,
Daniel

#1
02/11/2009 (7:23 pm)
Your best bet would be to create two ActionMap objects. The one that is created by default is named "moveMap".

To simplify, you would have to bind the commands to both ActionMaps, then push (enable) and pop (disable) the appropriate ActionMap.
#2
02/11/2009 (8:56 pm)
Where would suggest that code be located?
#3
02/13/2009 (2:58 pm)
Never mind, I figured it out.

Thanks.
#4
07/26/2009 (10:59 am)
This is the worst part about forums. IF YOU FIND A SOLUTION, PLEASE POST IT -- don't just post 'Figured it out, thanks'. This helps the rest of us who may have the same question.
#5
07/27/2009 (10:32 am)
Where else does ActionMap get put? You should know that, otherwise start looking in tdn or buy a book for Torque Programming. I asked because I was too lazy to search myself, but I did it anyway and figured it out. If everything was answered, nobody would learn anything. Besides, the main question was answered, so it is solved.