Forráskód Böngészése

Call GainFocus() on Input initialization instead of just setting focusedThisFrame_ true. Fixes #1411.

Lasse Öörni 9 éve
szülő
commit
d759a0e51b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Source/Urho3D/Input/Input.cpp

+ 1 - 1
Source/Urho3D/Input/Input.cpp

@@ -1485,7 +1485,7 @@ void Input::Initialize()
     // Set the initial activation
     initialized_ = true;
 #ifndef __EMSCRIPTEN__
-    focusedThisFrame_ = true;
+    GainFocus();
 #else
     // Note: Page visibility and focus are slightly different, however we can't query last focus with Emscripten (1.29.0)
     if (emscriptenInput_->IsVisible())