Exit when pressing escape, patch by szigor from #2801291.
This commit is contained in:
parent
748c4c810b
commit
1019c9bb46
|
@ -687,6 +687,17 @@ static void desmume_cycle(int *sdl_quit, struct my_config * my_config)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SDL_KEYUP:
|
||||||
|
switch (event.key.keysym.sym)
|
||||||
|
{
|
||||||
|
case SDLK_ESCAPE:
|
||||||
|
*sdl_quit = 1;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
*sdl_quit = 1;
|
*sdl_quit = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue