1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-31 12:06:42 +00:00

Bugfix. Lost xr controls if exiting containers after drag-and-drop

This commit is contained in:
Mads Buvik Sandvei 2020-02-15 21:33:26 +01:00
parent da73df1707
commit 0840d2dd92
2 changed files with 2 additions and 3 deletions

View file

@ -293,7 +293,6 @@ namespace MWPhysics
{
float yaw = session->movementYaw();
refpos.rot[2] += yaw;
Log(Debug::Verbose) << "yaw = " << yaw;
}
}
#endif

View file

@ -778,6 +778,8 @@ namespace MWVR
bool guiMode = MWBase::Environment::get().getWindowManager()->isGuiMode();
session->showMenu(guiMode);
setPlayerControlsEnabled(!guiMode);
}
void OpenXRInputManager::processEvent(const OpenXRActionEvent& event)
@ -918,8 +920,6 @@ namespace MWVR
mAttemptJump = true;
break;
case A_Use:
//MWMechanics::DrawState_ state = MWBase::Environment::get().getWorld()->getPlayer().getDrawState();
//mPlayer->setAttackingOrSpell(currentValue != 0 && state != MWMechanics::DrawState_Nothing);
mInputBinder->getChannel(A_Use)->setValue(event.onPress);
break;
default: