mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 04:41:32 +00:00
Don't trigger any mouse button bindings while in the settings menu
This commit is contained in:
parent
04c79d5f1e
commit
dc1e8d4e22
1 changed files with 3 additions and 2 deletions
|
@ -554,9 +554,10 @@ namespace MWInput
|
||||||
}
|
}
|
||||||
|
|
||||||
setPlayerControlsEnabled(!guiMode);
|
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 )
|
void InputManager::mouseReleased( const SDL_MouseButtonEvent &arg, Uint8 id )
|
||||||
|
|
Loading…
Reference in a new issue