ppc: Why not simply put the AI loop in a separate thread and simply set a signal when it's done? You could drop the target FPSs to 2 while it's processing, and then even include a nice progress meter and some nice effects...
Polling button and stylus state?
The peek message technique should be in a good book on win32 programming. Mine are a bit old, so maybe search MSDN for some latest examples.
mlepage wrote:The peek message technique should be in a good book on win32 programming. Mine are a bit old, so maybe search MSDN for some latest examples.
Should find it in the help files with eVC.