Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


A different kind of menu question

This topic is 6127 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

Hey, I'm working on a very small and cheesy menuing system in OpenGL for my little game, and I'm running into some weird effects.. Basically I've got two application state flags. My thinking is that I want the menu to be able to appear regardless of which state the game is in, then when the user returns to the game, it returns to the exact state he left it in...(as most games seem to do nowadays).. Anyways, I have no problems RENDERING my menu, but my problems arise from testing to see if the user has hit ESC in order to create/destroy the menu... I get weird results where sometimes the menu does what it's supposed to do, then others it doesn't seem to register the ESC key properly..(I'm using buffered DirectInput)..
    if(dwCurrentAppState == MENU)
	dwCurrentAppState = dwOldAppState;
	dwOldAppState = dwCurrentAppState;
	dwCurrentAppState = MENU;
    bESC = FALSE;
I can't have been the only person to come across this erratic behaviour...what have other people done?? Are you supposed to use some kind of timing code with your menus, to prevent this "nonregistering" from happening?? (I'm using the query perf. timer as normal to lock the framerate to 30fps).. thanks, Edited by - wazoo69 on December 17, 2001 8:50:24 PM

Share this post

Link to post
Share on other sites

  • 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!