when to check for input
when should I call my UpdateInput routines? Im using SDL, and Im checking for input every loop at the main game loop...is this ok or should I check for input after some time delay?
Thanks in advance
"Those who follow the path of the warrior must be ready to die, to stand for their convictions, live for one´s convictions, die for one´s convictions"
ahh does SDL use callbacks for input? if so, then just use those...
...................................................
...................................................
SDL uses an event system..for example...each time a key is pressed..a new keyboard event is created..as soon as that event is created.I update my input
Well I call SDL_PollEvents(&event) every frame. I''ve never seen any problem with doing it this way.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement