Phase 4 volume
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-11 21:20:48 -07:00
commit 9e52a4200b
6 changed files with 182 additions and 9 deletions

View file

@ -150,6 +150,30 @@ void SdlInputHandler::performSpecialKeyCombo(KeyCombo combo)
}
break;
case KeyComboVolumeUp:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected volume up combo");
if (auto session = Session::get(); session != nullptr) {
session->adjustAudioVolume(0.05f);
}
break;
case KeyComboVolumeDown:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected volume down combo");
if (auto session = Session::get(); session != nullptr) {
session->adjustAudioVolume(-0.05f);
}
break;
case KeyComboToggleMute:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected audio mute toggle combo");
if (auto session = Session::get(); session != nullptr) {
session->toggleAudioMute();
}
break;
case KeyComboTogglePointerRegionLock:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected pointer region lock toggle combo");