View Single Post
Even worse than I thought
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default Even worse than I thought - 04-19-2007, 11:50 AM

Well, the situation is even worse than I thought. I was assuming (once again erroneously) that the end event for the event of type While any key is pressed would be fired when the user releases the key. That way, it could be used to clear a runFlag accessible by the event handler method to notify the event handler that it should terminate at the next available opportunity.

As it turns out, the end event isn't fired until either the event handler method terminates or the key is released, whichever occurs later.

Back to the drawing board.

Dick Baldwin

Last edited by DickBaldwin; 04-19-2007 at 12:34 PM. Reason: Clarification
   
Reply With Quote