Win32: Fix non-BMP Unicode codepoint input

Supplementary Plane codepoints from WM_CHAR and WM_SYSCHAR messages were
reported as UTF-16 surrogate pairs.

Related to #1635.
This commit is contained in:
Camilla Löwy
2020-06-29 20:43:28 +02:00
parent e47832ffcf
commit 6ce2070392
3 changed files with 34 additions and 8 deletions

View File

@@ -311,6 +311,8 @@ typedef struct _GLFWwindowWin32
// The last received cursor position, regardless of source
int lastCursorPosX, lastCursorPosY;
// The last recevied high surrogate when decoding pairs of UTF-16 messages
WCHAR highSurrogate;
} _GLFWwindowWin32;