mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +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);
|
setPlayerControlsEnabled(!guiMode);
|
||||||
|
|
||||||
|
// 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);
|
mInputBinder->mousePressed (arg, id);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputManager::mouseReleased( const SDL_MouseButtonEvent &arg, Uint8 id )
|
void InputManager::mouseReleased( const SDL_MouseButtonEvent &arg, Uint8 id )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user