mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Document Michael's changes adding TranslateMessage() back to the SDL message loop.
This commit is contained in:
parent
5c58bd6877
commit
dbd4a917e0
@ -550,6 +550,12 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||||||
returnCode = 0;
|
returnCode = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_UNICHAR:
|
||||||
|
case WM_CHAR:
|
||||||
|
/* Ignore WM_CHAR messages that come from TranslateMessage(), since we handle WM_KEY* messages directly */
|
||||||
|
returnCode = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
#ifdef WM_INPUTLANGCHANGE
|
#ifdef WM_INPUTLANGCHANGE
|
||||||
case WM_INPUTLANGCHANGE:
|
case WM_INPUTLANGCHANGE:
|
||||||
{
|
{
|
||||||
@ -848,7 +854,8 @@ WIN_PumpEvents(_THIS)
|
|||||||
const Uint8 *keystate;
|
const Uint8 *keystate;
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
|
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
|
||||||
TranslateMessage(&msg);
|
/* Always translate the message in case it's a non-SDL window (e.g. with Qt integration) */
|
||||||
|
TranslateMessage(&msg);
|
||||||
DispatchMessage(&msg);
|
DispatchMessage(&msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user