From e01bd175104f62be47e14e8592aa3e5ebe343a7d Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 14 Apr 2011 12:10:26 -0300 Subject: [PATCH] ... --- src/framework/platform/win32platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/platform/win32platform.cpp b/src/framework/platform/win32platform.cpp index 9f35e528..4d65bfea 100644 --- a/src/framework/platform/win32platform.cpp +++ b/src/framework/platform/win32platform.cpp @@ -541,7 +541,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_KEYUP: { if(win32.keyMap.find(wParam) != win32.keyMap.end()) { - inputEvent.type = uMsg == WM_KEYDOWN ? EV_KEY_DOWN : WM_KEYUP; + inputEvent.type = uMsg == WM_KEYDOWN ? EV_KEY_DOWN : EV_KEY_UP; inputEvent.ctrl = HIWORD(GetKeyState(VK_CONTROL)) == 0 ? false : true; inputEvent.alt = HIWORD(GetKeyState(VK_MENU)) == 0 ? false : true; inputEvent.shift = HIWORD(GetKeyState(VK_SHIFT)) == 0 ? false : true;