Fixed mouse capture problems when alt-tabbing
This commit is contained in:
@@ -389,7 +389,7 @@ BOOL InputAcquire(void)
|
|||||||
if (JoystickInput[3]) JoystickInput[3]->Acquire();
|
if (JoystickInput[3]) JoystickInput[3]->Acquire();
|
||||||
if (JoystickInput[4]) JoystickInput[4]->Acquire();
|
if (JoystickInput[4]) JoystickInput[4]->Acquire();
|
||||||
if (device1 && device2 && !GUIOn2) MultiMouseInit();
|
if (device1 && device2 && !GUIOn2) MultiMouseInit();
|
||||||
else if (MouseInput) MouseInput->Acquire();
|
else if (MouseInput && GUIOn2) MouseInput->Acquire();
|
||||||
if (KeyboardInput) KeyboardInput->Acquire();
|
if (KeyboardInput) KeyboardInput->Acquire();
|
||||||
InputEn = 1;
|
InputEn = 1;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -1814,16 +1814,19 @@ void Start60HZ(void)
|
|||||||
MultiMouseInit();
|
MultiMouseInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!device1 && !device2) MouseInput->Unacquire();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Stop60HZ(void)
|
void Stop60HZ(void)
|
||||||
{
|
{
|
||||||
T60HZEnabled=0;
|
T60HZEnabled=0;
|
||||||
|
|
||||||
if (device1 && device2)
|
if (device1 && device2)
|
||||||
{
|
|
||||||
MultiMouseShutdown();
|
MultiMouseShutdown();
|
||||||
|
|
||||||
MouseInput->Acquire();
|
MouseInput->Acquire();
|
||||||
}
|
|
||||||
ShutdownSemaphore();
|
ShutdownSemaphore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user