Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c continue loop

Name: Anonymous 2007-10-24 15:33

"Prompt user to enter 'c' to continue or 'q' to quit"

How do I add that code into my program, thanks alot!
I figure it has to be a typa loop?! i was thinking a while loop but when i tried that it did not work.

Name: Anonymous 2007-10-25 5:27

Create an abstract input event handler that uses input event drivers. Then create a driver to wrap SDL input events, and use libSDL. On top of this, build a key event filter (which should be a subclass of a generic type of event filter) implementing a queue for filtered key events, which you then process with a consumer thread. This thread will update certain singletons regarding whether the user wanted to continue or quit, and the main thread should act accordingly.

This is how we do it at our enterprise.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List