1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 04:06:41 +00:00
This commit is contained in:
madsbuvi 2021-04-25 13:20:01 +02:00
parent 6b88a7ab1e
commit 2172aa17f1

View file

@ -459,7 +459,6 @@ namespace MWVR
auto* vrGuiManager = Environment::get().getGUIManager();
auto* wm = MWBase::Environment::get().getWindowManager();
// OpenMW does not currently provide any way to directly request skipping a video.
// This is copied from the controller manager and is used to skip videos,
// and works because mygui only consumes the escape press if a video is currently playing.
@ -476,11 +475,6 @@ namespace MWVR
}
}
if (disableControls)
{
return;
}
bool guiMode = MWBase::Environment::get().getWindowManager()->isGuiMode();
if (guiMode)
@ -596,6 +590,10 @@ namespace MWVR
else
{
if (disableControls)
{
return;
}
// Hold actions
switch (action->openMWActionCode())