Added another test of checkForInput for WIN32 Windows keyboard and mouse
events are added to the input queue in Block- and WakupHandlers. There is no device to check if input is ready.
This commit is contained in:
parent
1230c55ac3
commit
c4d1b4e042
|
@ -350,6 +350,13 @@ WaitForSomething(int *pClientsReady)
|
|||
#endif
|
||||
if (XFD_ANYSET (&devicesReadable) || XFD_ANYSET (&clientsReadable))
|
||||
break;
|
||||
#ifdef WIN32
|
||||
/* Windows keyboard and mouse events are added to the input queue
|
||||
in Block- and WakupHandlers. There is no device to check if
|
||||
data is ready. So check here if new input is available */
|
||||
if (*checkForInput[0] != *checkForInput[1])
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user