mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- Unraveled the want_native bit in I_CheckNativeMouse somewhat to ensure that it ends up false
when menuactive == MENU_WaitKey, even if you're not in a level. SVN r3618 (trunk)
This commit is contained in:
parent
1fec92c921
commit
9d4ba3c7fd
1 changed files with 12 additions and 5 deletions
|
@ -267,12 +267,19 @@ void I_CheckNativeMouse(bool preferNative)
|
|||
}
|
||||
else
|
||||
{
|
||||
want_native =
|
||||
(GetForegroundWindow() != Window) ||
|
||||
preferNative ||
|
||||
!use_mouse ||
|
||||
((!m_use_mouse || menuactive != MENU_WaitKey) &&
|
||||
if ((GetForegroundWindow() != Window) || preferNative || !use_mouse)
|
||||
{
|
||||
want_native = true;
|
||||
}
|
||||
else if (menuactive == MENU_WaitKey)
|
||||
{
|
||||
want_native = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
want_native = ((!m_use_mouse || menuactive != MENU_WaitKey) &&
|
||||
(!CaptureMode_InGame() || GUICapture || paused || demoplayback));
|
||||
}
|
||||
}
|
||||
|
||||
//Printf ("%d %d %d\n", wantNative, preferNative, NativeMouse);
|
||||
|
|
Loading…
Reference in a new issue