add option to choose whether left alt or both alts toggle's fullscreen
This commit is contained in:
parent
05668f792a
commit
a740f7754c
3 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,7 @@ void EventThread::process(RGSSThreadData &rtData)
|
|||
WindowSizeNotify &windowSizeMsg = rtData.windowSizeMsg;
|
||||
|
||||
fullscreen = rtData.config.fullscreen;
|
||||
int toggleFSMod = rtData.config.anyAltToggleFS ? KMOD_ALT : KMOD_LALT;
|
||||
|
||||
fps.lastFrame = SDL_GetPerformanceCounter();
|
||||
fps.displaying = false;
|
||||
|
@ -145,7 +146,7 @@ void EventThread::process(RGSSThreadData &rtData)
|
|||
|
||||
case SDL_KEYDOWN :
|
||||
if (event.key.keysym.scancode == SDL_SCANCODE_RETURN &&
|
||||
(event.key.keysym.mod & KMOD_ALT))
|
||||
(event.key.keysym.mod & toggleFSMod))
|
||||
{
|
||||
setFullscreen(win, !fullscreen);
|
||||
if (!fullscreen && havePendingTitle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue