FIRE-33532 Cover the remaining cases for mic toggle: hotkey / mouse, activation/deactivation without PTT checkbox selected

master
PanteraPolnocy 2023-12-17 15:25:52 +01:00
parent 0c1f2366ff
commit cdbcbf09e7
2 changed files with 3 additions and 0 deletions

View File

@ -939,11 +939,13 @@ bool voice_follow_key(EKeystate s)
{
if (!LLAgent::isActionAllowed("speak")) return false;
LLVoiceClient::getInstance()->setUserPTTState(true);
make_ui_sound("UISndMicToggle"); // <FS:PP> FIRE-33249 Mic toggle
return true;
}
else if (KEYSTATE_UP == s && LLVoiceClient::getInstance()->getUserPTTState())
{
LLVoiceClient::getInstance()->setUserPTTState(false);
make_ui_sound("UISndMicToggle"); // <FS:PP> FIRE-33249 Mic toggle
return true;
}
return false;

View File

@ -677,6 +677,7 @@ void LLVoiceClient::inputUserControlState(bool down)
else // set open-mic state as an absolute
{
setUserPTTState(down);
make_ui_sound("UISndMicToggle"); // <FS:PP> FIRE-33249 Mic toggle
}
}