Game Development Community

Xbox D-pad Menu/gui Control

by Stephen Sinclair · in General Discussion · 05/04/2007 (1:44 pm) · 1 replies

Is there anyway to control GUI controls with the XBOX controller's D-PAD. I would like to use the D-PAD to control a list of menu items. The user will be presented with a list of "plays" in the mission. The user would select a "Play" and click the "A" button to start the play.

Anyone accomplish this using the XBOX Controller WITHOUT code changes, but script???

Thanks!!!

Steve

#1
05/07/2007 (5:39 pm)
Ok, I think I figured out a good way to do this and wanted to post in case someone else finds this. The moveMap in the samples in the default.bind.cs, is the clue. I created an actionmap for each gui and naming them somthing different for each GUI. ie. I created an actionmap for binding to "A" and "B" on the xbox controller for a gui that requires "A" to select or "B" for back. I POP and bind the actions maps when needed for each GUI. I can post more details if anybody needs it. Basically I swap action maps when different GUIs require different user inputs.

Steve