* Allow handling of WM_CHAR in the case of Windows.

This commit is contained in:
iProgramInCpp
2023-08-05 16:13:11 +03:00
parent 386fac3ff6
commit 0ceef907c0
7 changed files with 47 additions and 13 deletions

View File

@@ -178,6 +178,17 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
break;
}
case WM_CHAR:
{
if (lParam & (1 << 31))
break;
if (wParam >= '~' && wParam < ' ')
break;
g_pApp->handleCharInput(char(wParam));
break;
}
case WM_DESTROY:
PostQuitMessage(0);
return 0;