}
}
}
-
- HandleNoXEvent();
+ else
+ HandleNoEvent();
/* don't use all CPU time when idle; the main loop while playing
has its own synchronization and is CPU friendly, too */
- if (game_status != PLAYING)
+ if (game_status == PLAYING)
+ HandleGameActions();
+ else
{
SyncDisplay();
if (!PendingEvent()) /* delay only if no pending events */
if (!PointerInWindow(window))
return; /* window and pointer are on different screens */
-#if 0
+#if 1
if (button_status == MB_RELEASED && game_status != LEVELED)
return;
#endif
}
}
-void HandleNoXEvent()
+void HandleNoEvent()
{
if (button_status && game_status != PLAYING)
{
#endif
HandleJoystick();
-
- if (game_status == PLAYING)
- HandleGameActions();
}
static int HandleJoystickForAllPlayers()
void HandleFocusEvent(FocusChangeEvent *);
void HandleClientMessageEvent(ClientMessageEvent *event);
-void HandleNoXEvent(void);
+void HandleNoEvent(void);
void HandleButton(int, int, int);
void HandleKey(Key, int);