Jump to content
  • Advertisement

Archived

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

Tai-Pan

when to check for input

This topic is 5521 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
Advertisement
ahh does SDL use callbacks for input? if so, then just use those...

...................................................

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!