Attempt fix for out of focus mouse bug in win32
This commit is contained in:
parent
cf1f74660c
commit
054e1f9f29
|
@ -469,9 +469,12 @@ static void UpdateMouseFields(JNIEnv *env, jclass clsMouse, jobject coord_buffer
|
|||
// did the read fail because we lost input for some reason?
|
||||
// if so, then attempt to reacquire.
|
||||
if(hRes == DIERR_INPUTLOST || hRes == DIERR_NOTACQUIRED) {
|
||||
mDIDevice->Acquire();
|
||||
hRes = mDIDevice->Acquire();
|
||||
if (hRes != DI_OK)
|
||||
return;
|
||||
} else {
|
||||
printfDebug("Error getting mouse state: %d\n", hRes);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue