Jump to content
  • Advertisement


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

Dwarf with Axe

Waiting for input?

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

I guess I forgot how, but what is a simple way to wait for input? Say, if I want to stop my program, and just wait... Then when the player pushes something, continue... I think I did forget... It''s the ale I tell ya, ~Dwarf

Share this post

Link to post
Share on other sites
You can use the WM_CHAR message and do something like this

..in your windows message code...
case WM_CHAR:
switch (wParam) {
case 'q':
//shutdown everything
} //end of switch for key contents

you can also throw in a toggle flag and make the app pause as well.
but if you are using DirectInput then you cannot use this method..just whip up something similiar

Edited by - GoofProg on January 12, 2002 1:48:19 AM

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!