From 1a7ac468933b1124a80f2502cd048640f3183a18 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 28 Aug 2016 01:22:47 +0200 Subject: [PATCH] Example/FirstScene: Fix event handling Former-commit-id: a3d33e15303aee7de339f1bc6ba84866fcaea524 [formerly 391d9095d6b64cf1409f12ab62f1b95a721e8489] [formerly a609374620028cae9cc3f3ba66efda909bb33479 [formerly 2f3dbf79330334123da1e6ff0edd74ec9c8f53b4]] Former-commit-id: 69d9719acc6ba619e60b8580f4ba49bb543cbe9f [formerly bb65e744b18ef7e185c2960c5f07223a057a5496] Former-commit-id: 08a99a0241402466ac4463807b1127060095f827 --- examples/FirstScene/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/FirstScene/main.cpp b/examples/FirstScene/main.cpp index 07e26cd1c..0a471acee 100644 --- a/examples/FirstScene/main.cpp +++ b/examples/FirstScene/main.cpp @@ -329,6 +329,8 @@ int main() lua.PushGlobal("Spaceship", spaceship->CreateHandle()); lua.PushGlobal("World", world->CreateHandle()); + window.EnableEventPolling(true); // Déprécié + // Début de la boucle de rendu du programme (s'occupant par exemple de mettre à jour le monde) while (application.Run()) {