On Mon, 3 Sep 2001, Alexander R Angas wrote:
> Hi Matt,
>
> > My only suggestion would be to implement an event loop with callbacks for
> > "polling" the event queue. This way we can eliminate the Sleep's and
> > polling behaviour.
>
> Definitely sounds like a very good idea. I haven't done that at this stage
> but will look into it. Can you give me any more detail on this?
Take a look at the CALLBACK function in Sarien's win32.c:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sarien/sarien/src/graphics/win32/win32.c
(look at revision 1.30). MSDN has some better commented examples on how to
use this approach if this doesn't make sense to you.
--
http://www.clock.org/~matt