Enable/disable/toggle fullscreen with hot-key.

This commit is contained in:
Johns 2012-04-06 14:38:51 +02:00
parent ac2e10a308
commit aa4debc9c8
2 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,7 @@ User johns
Date: Date:
Release Version 0.5.0 Release Version 0.5.0
Enable/disable/toggle fullscreen with hot-key (Feature #930).
User: CafeDelMar User: CafeDelMar
Date: Thu Apr 5 22:44:06 CEST 2012 Date: Thu Apr 5 22:44:06 CEST 2012

View File

@ -844,6 +844,15 @@ static void HandleHotkey(int code)
case 12: // toggle pass-through case 12: // toggle pass-through
CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1); CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1);
break; break;
case 20: // disable full screen
VideoSetFullscreen(0);
break;
case 21: // enable full screen
VideoSetFullscreen(1);
break;
case 22: // toggle full screen
VideoSetFullscreen(-1);
break;
default: default:
esyslog(tr("[softhddev]: hot key %d is not supported\n"), code); esyslog(tr("[softhddev]: hot key %d is not supported\n"), code);
break; break;
@ -1769,7 +1778,10 @@ static const char *SVDRPHelpText[] = {
" key is the hotkey number, following are supported:\n" " key is the hotkey number, following are supported:\n"
" 10: disable audio pass-through\n" " 10: disable audio pass-through\n"
" 11: enable audio pass-through\n" " 11: enable audio pass-through\n"
" 12: toggle audio pass-through\n", " 12: toggle audio pass-through\n"
" 20: disable fullscreen\n"
" 21: enable fullscreen\n"
" 22: toggle fullscreen\n",
NULL NULL
}; };