Frank Buss wrote:

> It depends on your applications, but maybe it is better to use an
> event loop and a second thread for a computer player or network
> connection, because otherwise it is difficult to poll the events for
> playing with the mouse.

Okay, so suppose I do fire up the window in a separate thread and use 
with-events to track events. What's the best way to modify the board 
from another thread--i.e. when I figure out that I want to add a stone 
to the board I need somehow to inject an event right, to tell the 
draw-board function to update things.

-Peter

P.S. I noticed that with no event loop, if the window gets occluded and 
then uncovered, it doesn't redraw, presumably because I'm not handling 
the :video-expose-event. Just for grins is there some other way to fix that?

-- 
Peter Seibel            :  [EMAIL PROTECTED]
Gigamonkeys Consulting  :  http://www.gigamonkeys.com/
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to