samples/3D/walkAround: Fixed ignoring keys when inactive
[sdk] / samples / 3D / walkAround / walkAround.ec
index b4ce295..0e0960d 100644 (file)
@@ -25,7 +25,7 @@ class WalkAroundApp : GuiApplication
          diffTime = time - lastTime;
          lastTime = time;
          GetMouseState(&buttons, &xd, &yd);
-         if(form)
+         if(form && form.active)
          {
             bool updateCamera = false;
             float speed = 50;