Add keyboard and gamepad shortcuts for control panel
Some checks are pending
Build / setup (push) Waiting to run
Build / build-appimage (push) Blocked by required conditions
Build / build-steamlink (push) Blocked by required conditions
Build / build-windows-macos (push) Blocked by required conditions

This commit is contained in:
Joey Yakimowich-Payne 2026-02-12 01:15:12 -07:00
commit 3767a9eac3
4 changed files with 27 additions and 0 deletions

View file

@ -64,6 +64,14 @@ void SdlInputHandler::performSpecialKeyCombo(KeyCombo combo)
!Session::get()->getOverlayManager().isOverlayEnabled(Overlay::OverlayDebug));
break;
case KeyComboToggleControlPanel:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected control panel toggle combo");
if (auto session = Session::get(); session != nullptr) {
session->toggleControlPanelVisibility();
}
break;
case KeyComboToggleMouseMode:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected mouse mode toggle combo");