RE: [AD] bug #413240

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> > I agree with Javier and nobody -- the key array is independent
> > of keypressed/readkey and so it should be independent of
> > clear_keybuf.  Besides, clearing the key array directly isn't
> > hard -- there's no need for a function to do it.
>
> But there is the problem of the 'behind-the-scene' array, I mean _key[].
> Obviously clearing key[] without clearing _key[] can cause
> unexpected things
> to happen in polling mode.

That should be noted in the docs then.

IMHO the user should not modify the key[] array anyway. It is supposed to
represent which keys are held down. Likewise clearing the keyboard buffer
should not clear this array; the keys are still held down, and should be
reflected as such in the array.

Ben Davis



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/