From 39c89c52f4129e0eb8291ed0a33998b8c4274273 Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 15 Feb 2018 21:08:38 +0100 Subject: [PATCH] Platform/Window: Fix size event triggering key event on Windows --- ChangeLog.md | 1 + src/Nazara/Platform/Win32/WindowImpl.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index c87390157..b7b0e9c7d 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -66,6 +66,7 @@ Nazara Engine: - Add PhysWorld2D::[Get|Set]IterationCount to control how many iterations chipmunk will perform per step. - Add PhysWorld2D::UseSpatialHash to use spatial hashing instead of bounding box trees, which may speedup simulation in some cases. - Add PhysWorld[2D|3D] max step count per Step call (default: 50), to avoid spirals of death when the physics engine simulation time is over step size. +- Fix Window triggering KeyPressed event after triggering a resize/movement event on Windows Nazara Development Kit: - Added ImageWidget (#139) diff --git a/src/Nazara/Platform/Win32/WindowImpl.cpp b/src/Nazara/Platform/Win32/WindowImpl.cpp index 0eb2c670d..07f952e96 100644 --- a/src/Nazara/Platform/Win32/WindowImpl.cpp +++ b/src/Nazara/Platform/Win32/WindowImpl.cpp @@ -501,6 +501,7 @@ namespace Nz event.size.height = size.y; m_parent->PushEvent(event); } + break; } case WM_KEYDOWN: