Add a "idle" method to the state structure fremantle
authorAlberto Mardegan <mardy@users.sourceforge.net>
Sat, 20 Aug 2011 20:02:59 +0000 (23:02 +0300)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Sat, 20 Aug 2011 20:02:59 +0000 (23:02 +0300)
commit8228f344ca7bd78ebf4e0005bc90abd719520857
tree1aba78d6e502b3b933458d23e760a72a60864b59
parentffedfbc9805f972824c317efddc11eb4d9866df0
Add a "idle" method to the state structure

This method is called before checking for events. The goal is to make possible
for states to call SDL_WaitEvents() and avoid using 100% of the CPU when
unnecessary.
21 files changed:
ball/main.c
ball/st_ball.c
ball/st_conf.c
ball/st_demo.c
ball/st_done.c
ball/st_fail.c
ball/st_goal.c
ball/st_help.c
ball/st_level.c
ball/st_name.c
ball/st_over.c
ball/st_pause.c
ball/st_play.c
ball/st_save.c
ball/st_set.c
ball/st_start.c
ball/st_title.c
putt/main.c
putt/st_all.c
share/state.c
share/state.h