Re: need delay while key not pressed
Jonathan Dearborn <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CA+DSiHYX8Fw-eAA7J3t_FiJy=mbXXzs7k7JmqyNX_3Ka66hkKw@mail.gmail.com> |
Well, I was interpreting what you said about dimming. On Windows, if you do not interact with the OS (e.g. no SDL_PollEvent() over a span of about 5 seconds, then the OS sees your program in an unresponsive state and prompts you to do something about it. Jonny D On Sun, Jul 10, 2016 at 4:50 AM, bilsch01 <[email protected]> wrote: > > > > Quote: > > ]Your code enters a hard loop where it delays forever. Nothing changes > any variable that would help the loop to end, so your OS is helpfully > telling you there's a problem. > > > > How does my OS (ubuntu) know the situation inside the loop if the loop > does something every 500 msec? That's not very often. > > _______________________________________________ > 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