SDLK_Pause to toggle "mute"
This commit is contained in:
@@ -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user