I have an app I'm making where the user presses a key and a series of events occur. The problem is that during these events I need to prevent the user from pressing another key. Is there a way to lock the program somehow until my events complete?
Thanks for the help. I figured it out a different way before I came back and saw your response. It was an audio file I was waiting for so I put a "do/while" loop in which did nothing while the player was in the started state. Don't know if it's the best way but it seems to work fine.