From f438f4d467fa96e1b484f70e25dc1d6389170393 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 19 Dec 2014 03:55:38 +0200 Subject: [PATCH] Generate and handle WM_CHAR messages on Windows --- source/graphics/windows/display.cpp | 1 + source/graphics/windows/window.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/source/graphics/windows/display.cpp b/source/graphics/windows/display.cpp index 428abcc..fdae09e 100644 --- a/source/graphics/windows/display.cpp +++ b/source/graphics/windows/display.cpp @@ -95,6 +95,7 @@ bool Display::process_events() MSG msg; if(PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { + TranslateMessage(&msg); DispatchMessage(&msg); return true; } diff --git a/source/graphics/windows/window.cpp b/source/graphics/windows/window.cpp index 2af6b83..2d4d75b 100644 --- a/source/graphics/windows/window.cpp +++ b/source/graphics/windows/window.cpp @@ -162,6 +162,7 @@ bool Window::event(const Event &evnt) { case WM_KEYDOWN: case WM_KEYUP: + case WM_CHAR: case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MBUTTONDOWN: -- 2.45.2