If you are just after keyboard information, getting the keystate is much
faster than SDL_PollEvent(). If you want all the information (application
state, mouse movement, key presses, etc), SDL_PollEvent() is the optimal way
to go.
No
No, you can use SDL_PollEvent() multiple times per loop in different
functions (although this is really slow!). The examples demonstrate how to
use SDL events (polling and otherwise) - it’s usually all in one place to
make it easier to follow. Don’t be afraid to experiment.
Take care,
-AlexOn Sat, Oct 2, 2010 at 9:20 AM, Justo0 wrote:
Hi,
Im an SDL beginner and I have a few questions…
I would like to know when it is prefered to use keystates over events.
If I don’t poll the SDLEvents, will it bloat the memory?
Also, I dont get how events should work. With SDL I need one part of the
program to take care of all events, is that true?
Hello, I’m looking for that such a conversion routine … has someone invented alredy that “wheel” ?? --Armin___________________________________________________________ WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2