From dc8f9bd92360b0a0d2384648efee0f64e71beae9 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 27 Aug 2012 19:25:30 +0200 Subject: [PATCH] workaround for alt tab view mode toggle --- apps/openmw/mwinput/inputmanagerimp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwinput/inputmanagerimp.cpp b/apps/openmw/mwinput/inputmanagerimp.cpp index caf4d79c90..5ead446f13 100644 --- a/apps/openmw/mwinput/inputmanagerimp.cpp +++ b/apps/openmw/mwinput/inputmanagerimp.cpp @@ -258,7 +258,9 @@ namespace MWInput mPlayer.setUpDown (0); if (mControlSwitch["playerviewswitch"]) { - if (actionIsActive(A_TogglePOV)) { + + // work around preview mode toggle when pressing Alt+Tab + if (actionIsActive(A_TogglePOV) && !mKeyboard->isModifierDown (OIS::Keyboard::Alt)) { if (mPreviewPOVDelay <= 0.5 && (mPreviewPOVDelay += dt) > 0.5) {