Timing

Blitz3D Forums/Blitz3D Beginners Area/Timing

Well, that sort of answers my next question: the Editor I'm writing started off as a full-screen app, then moved to a window, then I added GUI functionality (basically it progressed like this as I was learning Blitz+).

At the moment I have a "Code" section which clears the canvases, updates the map, checks the controls, and updates the cursor. This is followed by a WaitEvent loop, which contains the GUI checks. At the bottom, if Escape hasn't been pressed, it goes back to the Code section and so forth.

Am I right in my assumption that everything should be done within the WaitEvent loop? I have a control routine, for instance, that checks keypresses and initiates the relevant drawing tool - this should be done using Event checks?

(Thanks for your help, by the way soja - immensely useful :) )