Game Development Community

GUI navigation with controller / keyboard

by Harvey Greensall · in Torque Game Engine Advanced · 04/26/2008 (3:40 pm) · 4 replies

Hey all..

Is it possible to create a simple main menu style GUI with a list of options implemented as bitmap buttons that can be navigated by an Xbox360 gamepad.. If so how do you do it?

I've been looking through the forums for hours, and can't get a definite answer on this. It must be dead easy.

I want to navigate my GUI through a 360 controller, so D pad controls up down, left right, 'A' select, 'B' back...

....or on keyboard, arrow keys up down, left right, 'enter' select, 'escape' back or similar...


I've been reading vague stuff about move maps, 'tabbing' through gui controls etc. but can't actually find ANYTHING that says, 'If you want to ditch the mouse cursor in your GUI and use up, down, left, right keys, do this etc.'

Can anyone help? I'll gladly post our results and any working scripts etc.

Many thanks in advance

I've posted this on TGE forum too, but will update if I get a bite, and someone spills the beans.. 8)

Harvey

#1
04/27/2008 (7:45 am)
Anybody? Pleeease?
#2
04/30/2008 (12:15 am)
Hey Harvey,
If you have not downloaded the new TGEA 1.7 then you should because it has the new gui system with working xbox 360 controller support. The demo that it can be viewed on is called T3D.

Hope that helps.
#3
04/30/2008 (12:31 am)
As Ian mentions, the T3D game example specifically implements a GUI system designed around the 360 controller.
#4
04/30/2008 (3:07 am)
Thanks guys, that's exactly what I'm looking for. Just got to get my head around it all now.

many, many huge thanks. GGs forums strike once again 8)

H.