I relocated that call to inside with-init as instructed, and my program does not behave any differently.
--Marco Quoting Luke Crook <[email protected]>: > On Tue, 16 Dec 2008 19:30:19 -0800, Marco Leandro Carmosino > <[email protected]> wrote: > > > Hello all, > > > > I am having some trouble using enable-key-repeat. I am using SBCL and > > the latest > > version of lispbuilder-sdl from SVN. I call (enable-key-repeat nil nil), > > and > > then when I use: > > SDL> (enable-key-repeat-p) > > 500 > > 30 > > (sdl:enable-key-event nil nil) has to be called after SDL is initialized > to have an effect. Try the following; > > (defun move-dot () > (sdl:with-init () > (sdl:window *screen-width* *screen-height* :title-caption "Move Dot!") > (sdl:enable-key-repeat nil nil) > (setf (sdl:frame-rate) 30) > > ....) > > I'll add this to the documentation. > > - Luke > > _______________________________________________ > application-builder mailing list > [email protected] > http://www.lispniks.com/mailman/listinfo/application-builder > _______________________________________________ application-builder mailing list [email protected] http://www.lispniks.com/mailman/listinfo/application-builder
