Disabled legacy win32 key code that was causing a random crash.

This commit is contained in:
Justin Marshall
2020-06-15 18:31:53 -07:00
parent c25752e638
commit a8494d7de4
+11 -11
View File
@@ -517,17 +517,17 @@ bool WWKeyboardClass::Is_Buffer_Empty(void) const
*=============================================================================================*/
void WWKeyboardClass::Fill_Buffer_From_System(void)
{
if (!Is_Buffer_Full())
{
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) {
if (!GetMessage( &msg, NULL, 0, 0 )) {
return;
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
//if (!Is_Buffer_Full())
//{
// MSG msg;
// while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) {
// if (!GetMessage( &msg, NULL, 0, 0 )) {
// return;
// }
// TranslateMessage(&msg);
// DispatchMessage(&msg);
// }
//}
}