From aec7f829b34bbfc2577ebc811f3a4b26d0d80540 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 17 Apr 2004 20:14:59 +0000 Subject: [PATCH] SDLK_Pause to toggle "mute" --- stepmania/src/StepMania.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 79a9469c0f..9d2ba4067f 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1352,6 +1352,15 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam } } + if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_PAUSE)) + { + static bool bMute = false; + bMute = !bMute; + SOUNDMAN->SetPrefs( bMute ? 0 : PREFSMAN->m_fSoundVolume ); + SCREENMAN->SystemMessage( bMute ? "Mute on" : "Mute off" ); + return true; + } + return false; }