From 082306b1dbb8a666928fb78b7d0e2890766ba034 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 11 Apr 2013 00:59:21 +0200 Subject: [PATCH] Added support for WM_UNICHAR. --- src/win32_window.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index 9271e7d3..cfaced67 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -427,6 +427,21 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, return 0; } + case WM_UNICHAR: + { + // This message is not sent by Windows, but is sent by some + // third-party input method engines + + if (wParam == UNICODE_NOCHAR) + { + // Returning TRUE here announces support for this message + return TRUE; + } + + _glfwInputChar(window, (unsigned int) wParam); + return FALSE; + } + case WM_KEYUP: case WM_SYSKEYUP: {