mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Disabled legacy win32 key code that was causing a random crash.
This commit is contained in:
+11
-11
@@ -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);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user