Jump to content
  • Advertisement
Sign in to follow this  
bixel

GamePad Button Confirmation

This topic is 2880 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

without going into too much detail I've got these slick working menus,...
pressing the A button confirms a menu selected

But here is the problem, I have multiple menus and since my update checks if the A button has been released it tends to jump through the menus - rather than stopping at each one for confirmation


so mainmenu
submenu1
childmenu1
childsubmenu1
childmenu2
submenu2
childmenu1
submenu3
submenu4


so for instance, I press A to select submenu3. Submenu3 gets drawn and everything is fine. Press B and I back out to mainmenu.

However if I decided to select submenu1 - it would carry me all the way to childsubmenu1 without stopping - I have to press B to back out and select my childmenus

I have been working integrating all kinds of booleans or counting down of integers but nothing works since the ButtonRelease update will always set the next boolean or int so that it can trigger the next condition with triggers the next condition..

I don't know a strategy that will solve this.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!