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:
parent
04c79d5f1e
commit
dc1e8d4e22
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user