FIRE-33532 Cover the remaining cases for mic toggle: hotkey / mouse, activation/deactivation without PTT checkbox selected
parent
0c1f2366ff
commit
cdbcbf09e7
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue