Lisp HUG Maillist Archive

Re: CAPI: global keyboard handler and double buffering

Frank Buss wrote:

 > 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?
 >

As far as I can tell there is no global keyboard handler.  Though
logically there has to somewhere where keyboard events come in.
I really think CAPI should be extended in the future to be able
to handle a hook into an interface to optionally intercept
any key press.

Wade


Re: CAPI: global keyboard handler and double buffering

At 3/02/2005 20:00, Wade Humeniuk wrote:
>Frank Buss wrote:
>
> > 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?
> >
>
>As far as I can tell there is no global keyboard handler.  Though
>logically there has to somewhere where keyboard events come in.
>I really think CAPI should be extended in the future to be able
>to handle a hook into an interface to optionally intercept
>any key press.

I agree. And the IDE would be even better.

Francis


>Wade


Updated at: 2020-12-10 08:53 UTC