STARK: Implement fullscreen toggling
This commit is contained in:
parent
125ccf3b4d
commit
13ff072254
7 changed files with 42 additions and 2 deletions
|
@ -227,6 +227,10 @@ void StarkEngine::processEvents() {
|
|||
if (!skipped) {
|
||||
_global->setFastForward();
|
||||
}
|
||||
} else if ((e.kbd.keycode == Common::KEYCODE_RETURN
|
||||
|| e.kbd.keycode == Common::KEYCODE_KP_ENTER)
|
||||
&& e.kbd.hasFlags(Common::KBD_ALT)) {
|
||||
_gfx->toggleFullscreen();
|
||||
}
|
||||
|
||||
} else if (e.type == Common::EVENT_LBUTTONUP) {
|
||||
|
@ -241,6 +245,10 @@ void StarkEngine::processEvents() {
|
|||
_lastClickTime = _system->getMillis();
|
||||
} else if (e.type == Common::EVENT_RBUTTONDOWN) {
|
||||
_userInterface->handleRightClick();
|
||||
} else if (e.type == Common::EVENT_SCREEN_CHANGED) {
|
||||
_gfx->computeScreenViewport();
|
||||
_fontProvider->initFonts();
|
||||
_userInterface->onScreenChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue