Examples: DirectX9/11: hide os curosr if ImGui is drawing it (#155)

This commit is contained in:
ocornut
2015-05-01 11:25:15 +02:00
parent 68ccdc4fb8
commit ad7f600e0d
4 changed files with 8 additions and 2 deletions

View File

@ -446,6 +446,9 @@ void ImGui_ImplDX11_NewFrame()
// io.MouseDown : filled by WM_*BUTTON* events
// io.MouseWheel : filled by WM_MOUSEWHEEL events
// Hide OS mouse cursor if ImGui is drawing it
SetCursor(io.MouseDrawCursor ? NULL : LoadCursor(NULL, IDC_ARROW));
// Start the frame
ImGui::NewFrame();
}