mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +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
|
else
|
||||||
{
|
{
|
||||||
want_native =
|
if ((GetForegroundWindow() != Window) || preferNative || !use_mouse)
|
||||||
(GetForegroundWindow() != Window) ||
|
{
|
||||||
preferNative ||
|
want_native = true;
|
||||||
!use_mouse ||
|
}
|
||||||
((!m_use_mouse || menuactive != MENU_WaitKey) &&
|
else if (menuactive == MENU_WaitKey)
|
||||||
|
{
|
||||||
|
want_native = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
want_native = ((!m_use_mouse || menuactive != MENU_WaitKey) &&
|
||||||
(!CaptureMode_InGame() || GUICapture || paused || demoplayback));
|
(!CaptureMode_InGame() || GUICapture || paused || demoplayback));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Printf ("%d %d %d\n", wantNative, preferNative, NativeMouse);
|
//Printf ("%d %d %d\n", wantNative, preferNative, NativeMouse);
|
||||||
|
|
Loading…
Reference in a new issue