1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

Don't trigger any mouse button bindings while in the settings menu

This commit is contained in:
scrawl 2014-09-12 20:28:08 +02:00
parent 04c79d5f1e
commit dc1e8d4e22

View File

@ -554,9 +554,10 @@ namespace MWInput
}
setPlayerControlsEnabled(!guiMode);
mInputBinder->mousePressed (arg, id);
// Don't trigger any mouse bindings while in settings menu, otherwise rebinding controls becomes impossible
if (MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Settings)
mInputBinder->mousePressed (arg, id);
}
void InputManager::mouseReleased( const SDL_MouseButtonEvent &arg, Uint8 id )