Exit when pressing escape, patch by szigor from #2801291.

This commit is contained in:
riccardom 2009-06-12 20:15:20 +00:00
parent 748c4c810b
commit 1019c9bb46
1 changed files with 11 additions and 0 deletions

View File

@ -686,6 +686,17 @@ static void desmume_cycle(int *sdl_quit, struct my_config * my_config)
}
}
break;
case SDL_KEYUP:
switch (event.key.keysym.sym)
{
case SDLK_ESCAPE:
*sdl_quit = 1;
break;
default:
break;
}
break;
case SDL_QUIT:
*sdl_quit = 1;