IO: io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we'll now accept negative mouse coordinates.

This commit is contained in:
omar
2017-08-25 16:43:25 +08:00
parent 37f3a718c6
commit 92a6faca6f
8 changed files with 13 additions and 12 deletions

View File

@ -272,7 +272,7 @@ void ImGui_ImplGlfw_NewFrame()
}
else
{
io.MousePos = ImVec2(-1,-1);
io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX);
}
for (int i = 0; i < 3; i++)