forked from teamnwah/openmw-tes3coop
Don't play 'menu click' sound for right clicks (Fixes #3919)
This commit is contained in:
parent
534c81976c
commit
44e2089098
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ namespace MWInput
|
||||||
if (MyGUI::InputManager::getInstance ().getMouseFocusWidget () != 0)
|
if (MyGUI::InputManager::getInstance ().getMouseFocusWidget () != 0)
|
||||||
{
|
{
|
||||||
MyGUI::Button* b = MyGUI::InputManager::getInstance ().getMouseFocusWidget ()->castType<MyGUI::Button>(false);
|
MyGUI::Button* b = MyGUI::InputManager::getInstance ().getMouseFocusWidget ()->castType<MyGUI::Button>(false);
|
||||||
if (b && b->getEnabled())
|
if (b && b->getEnabled() && id == SDL_BUTTON_LEFT)
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getSoundManager ()->playSound ("Menu Click", 1.f, 1.f);
|
MWBase::Environment::get().getSoundManager ()->playSound ("Menu Click", 1.f, 1.f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue