Re: need delay while key not pressed

Michael Fairley <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CAO-mX8+tHrgbSGLoj+CatMvHxT3yKHW-H2xYWW1icB62s-VYuQ@mail.gmail.com>
I think you want the condition to be (!(event.type == SDL_KEYDOWN &&
event.key.keysym.scancode == SDL_SCANCODE_L)). As is, your condition is
checking for events that happen to L key that aren't keydown.

On Sun, Jul 10, 2016 at 12:33 AM, bilsch01 <[email protected]> wrote:

> The problem is it doesn't work. It never enters the loop.
>
> _______________________________________________
> SDL mailing list
> [email protected]
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.