void LLVoiceClient::middleMouseState(bool down)
{
	if(mPTTIsMiddleMouse && LLAgent::isActionAllowed("speak"))
	{
		inputUserControlState(down);
	}
}
void LLVoiceClient::keyUp(KEY key, MASK mask)
{
	if(!mPTTIsMiddleMouse)
	{
		bool down = (mPTTKey != KEY_NONE)
		&& gKeyboard->getKeyDown(mPTTKey);
		inputUserControlState(down);
	}
}
Ejemplo n.º 3
0
void LLVoiceClient::middleMouseState(bool down)
{
	if(mPTTIsMiddleMouse)
	{
		if(mPTTIsMiddleMouse)
		{
			inputUserControlState(down);
		}
	}
}
void LLVoiceClient::keyDown(KEY key, MASK mask)
{	
	if (gKeyboard->getKeyRepeated(key))
	{
		// ignore auto-repeat keys                                                                         
		return;
	}
	
	if(!mPTTIsMiddleMouse && LLAgent::isActionAllowed("speak"))
	{
		bool down = (mPTTKey != KEY_NONE)
		&& gKeyboard->getKeyDown(mPTTKey);
		inputUserControlState(down);
	}
	
}