1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Win32: Add comment clarifying use of ToUnicode

Fixes #2100
This commit is contained in:
Camilla Löwy 2022-05-05 21:47:34 +02:00
parent ce85c7dcaf
commit 62e175ef9f

View File

@ -502,6 +502,8 @@ void _glfwUpdateKeyNamesWin32(void)
if (length == -1)
{
// This is a dead key, so we need a second simulated key press
// to make it output its own character (usually a diacritic)
length = ToUnicode(vk, scancode, state,
chars, sizeof(chars) / sizeof(WCHAR),
0);