CAPI: global keyboard handler and double buffering
Hi, I'm writing a little game, you can paste it to your REPL and start it with (start): http://www.frank-buss.de/lisp/aqueduct.lisp.txt http://www.frank-buss.de/lisp/aqueduct.png But the problem is, when I click the "Play" button, then I have to click again in the board before I can start playing with the number keys (1-6, you can use the number pad for better direction matching). How can I register a global keyboard handler? Another problem: I want avoid the flickering, so I need double buffering, because it's easier to just draw all again instead of bookkeeping which areas needs to be redrawn. Is there are a simple example how I can do it with CAPI? Regards, Frank