diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-06-30 21:33:46 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-06-30 21:33:46 +0000 |
commit | c4d1b4e0424d53cd0470e0e3f57c10ee8fe3d8c2 (patch) | |
tree | cb2574fed3726055cb374ecf6cd9cf2069f64812 /os | |
parent | 1230c55ac3f75f4902b51b223d40354a54d0d0ab (diff) |
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.
Diffstat (limited to 'os')
-rw-r--r-- | os/WaitFor.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/os/WaitFor.c b/os/WaitFor.c index a4b95cba2..545e1be21 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -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 } } |