Add performance overlay for DXVA2 renderer
This commit is contained in:
parent
e944c819d9
commit
b19c4bfc5d
10 changed files with 233 additions and 68 deletions
|
|
@ -142,6 +142,19 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||
"Detected full-screen toggle combo");
|
||||
Session::s_ActiveSession->toggleFullscreen();
|
||||
|
||||
// Force raise all keys just be safe across this full-screen/windowed
|
||||
// transition just in case key events get lost.
|
||||
raiseAllKeys();
|
||||
return;
|
||||
}
|
||||
else if (event->keysym.sym == SDLK_s) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Detected stats toggle combo");
|
||||
|
||||
// Toggle the stats overlay
|
||||
Session::get()->getOverlayManager().setOverlayState(OverlayManager::OverlayDebug,
|
||||
!Session::get()->getOverlayManager().isOverlayEnabled(OverlayManager::OverlayDebug));
|
||||
|
||||
// Force raise all keys just be safe across this full-screen/windowed
|
||||
// transition just in case key events get lost.
|
||||
raiseAllKeys();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue