diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-09-26 22:28:18 +0300 |
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-09-26 22:28:18 +0300 |
| commit | 4080969968c5bac301d754e58ff938df6cbdb5a5 (patch) | |
| tree | 7350ad7b139bb994fc223e794cafccf306f62bc7 /indra/newview/llvoiceclient.cpp | |
| parent | 8f35d638fbdbbdcf80ad1e6d826fd6161a0a2387 (diff) | |
SL-6109 Conflict resolution
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
| -rw-r--r-- | indra/newview/llvoiceclient.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index fcca081647..041f617ae5 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -199,8 +199,6 @@ const LLVoiceVersionInfo LLVoiceClient::getVersion() void LLVoiceClient::updateSettings() { setUsePTT(gSavedSettings.getBOOL("PTTCurrentlyEnabled")); - std::string keyString = gSavedSettings.getString("PushToTalkButton"); - setPTTKey(keyString); setPTTIsToggle(gSavedSettings.getBOOL("PushToTalkToggle")); mDisableMic = gSavedSettings.getBOOL("VoiceDisableMic"); @@ -636,32 +634,6 @@ bool LLVoiceClient::getPTTIsToggle() return mPTTIsToggle; } -void LLVoiceClient::setPTTKey(std::string &key) -{ - // Value is stored as text for readability - if(key == "MiddleMouse") - { - mPTTMouseButton = CLICK_MIDDLE; - } - else if(key == "MouseButton4") - { - mPTTMouseButton = CLICK_BUTTON4; - } - else if (key == "MouseButton5") - { - mPTTMouseButton = CLICK_BUTTON5; - } - else - { - mPTTMouseButton = 0; - if(!LLKeyboard::keyFromString(key, &mPTTKey)) - { - // If the call failed, don't match any key. - key = KEY_NONE; - } - } -} - void LLVoiceClient::inputUserControlState(bool down) { if(mPTTIsToggle) @@ -682,48 +654,6 @@ void LLVoiceClient::toggleUserPTTState(void) setUserPTTState(!getUserPTTState()); } -void LLVoiceClient::keyDown(KEY key, MASK mask) -{ - if (gKeyboard->getKeyRepeated(key)) - { - // ignore auto-repeat keys - return; - } - - // - /*static LLCachedControl<LLSD> key_bind(gSavedSettings, "control_toggle_voice"); - LLKeyBind bind(key_bind); - if (LLAgent::isActionAllowed("speak") && bind().canHandleKey(key, mask)) - { - bool down = gKeyboard->getKeyDown(mPTTKey); - if (down) - { - inputUserControlState(down); - } - }*/ - -} -void LLVoiceClient::keyUp(KEY key, MASK mask) -{ - /*static LLCachedControl<LLKeyBind> key_bind(gSavedSettings, "control_toggle_voice"); - if (key_bind().canHandleKey(key, mask)) - { - bool down = gKeyboard->getKeyDown(mPTTKey); - if (!down) - { - inputUserControlState(down); - } - }*/ -} -void LLVoiceClient::updateMouseState(S32 click, MASK mask, bool down) -{ - /*static LLCachedControl<LLKeyBind> mouse_bind(gSavedSettings, "control_toggle_voice"); - if (mouse_bind().canHandleMouse((EMouseClickType)click, mask)) - { - inputUserControlState(down); - }*/ -} - //------------------------------------------- // nearby speaker accessors |
