Merge commit '9343d8162d5e6934d7894d9eea57c55f52faa503'
This commit is contained in:
commit
f4eddf316b
@ -76,6 +76,7 @@ static const char *help[] ={
|
|||||||
" Pause: " MODIFIER_NAME "+P\n"
|
" Pause: " MODIFIER_NAME "+P\n"
|
||||||
" Save state: " MODIFIER_NAME "+(0-9)\n"
|
" Save state: " MODIFIER_NAME "+(0-9)\n"
|
||||||
" Load state: " MODIFIER_NAME "+" SHIFT_STRING "+(0-9)\n"
|
" Load state: " MODIFIER_NAME "+" SHIFT_STRING "+(0-9)\n"
|
||||||
|
" Toggle Fullscreen " MODIFIER_NAME "+F\n"
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
" Mute/Unmute: " MODIFIER_NAME "+" SHIFT_STRING "+M\n"
|
" Mute/Unmute: " MODIFIER_NAME "+" SHIFT_STRING "+M\n"
|
||||||
#else
|
#else
|
||||||
|
11
SDL/main.c
11
SDL/main.c
@ -203,6 +203,17 @@ static void handle_events(GB_gameboy_t *gb)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_F:
|
||||||
|
if (event.key.keysym.mod & MODIFIER) {
|
||||||
|
if ((SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN_DESKTOP) == false) {
|
||||||
|
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
SDL_SetWindowFullscreen(window, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* Save states */
|
/* Save states */
|
||||||
if (event.key.keysym.scancode >= SDL_SCANCODE_0 && event.key.keysym.scancode <= SDL_SCANCODE_9) {
|
if (event.key.keysym.scancode >= SDL_SCANCODE_0 && event.key.keysym.scancode <= SDL_SCANCODE_9) {
|
||||||
|
Loading…
Reference in New Issue
Block a user