Initial commit of handling of onPause()
onPause() is called on ICS when the back button is pressed before the task lists is shown. With this commit, opentyrian pauses an ongoing level and waits for a key before continuing it. It does however not silence the music, which may be desirable as well (to be added with the next commit)
This commit is contained in:
@@ -50,6 +50,16 @@ void set_mouse_position( int x, int y );
|
||||
|
||||
void service_SDL_events( JE_boolean clear_new );
|
||||
|
||||
extern JE_boolean handle_pause_key;
|
||||
|
||||
static inline
|
||||
void service_SDL_events_ignore_pause( JE_boolean clear_new )
|
||||
{
|
||||
handle_pause_key = false;
|
||||
service_SDL_events( clear_new );
|
||||
handle_pause_key = true;
|
||||
}
|
||||
|
||||
void sleep_game( void );
|
||||
|
||||
void JE_clearKeyboard( void );
|
||||
|
||||
Reference in New Issue
Block a user