Archived

This topic is now archived and is closed to further replies.

when to check for input

This topic is 5310 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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"

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
what do you mean by frame? Are you calling SDL_PollEvents(&event) after some delay time has passed?(when its time to update frames), or every time in the game loop?

Share this post


Link to post
Share on other sites