keyboard support for windows

This commit is contained in:
Thomas Bernard
2018-06-20 17:29:05 +02:00
parent 5e628eb499
commit deac8b83cf
2 changed files with 16 additions and 0 deletions

View File

@@ -1163,7 +1163,14 @@ int Get_input(int sleep_time)
return 1;
}
if (user_feedback_required)
{
// Process the WM_CHAR event that follow WM_KEYDOWN
if(PeekMessage(&msg, NULL, WM_CHAR, WM_CHAR, PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 1;
}
#endif
return 0;
}