mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
Update cursor behavior. Should resolve fps and flicker issues when vsync is off, but now there will be 2 cursors in the ui, and the game cursor will change based on what is underneath the ui, even though it won't be interactable through the window
This commit is contained in:
parent
c80f400a2f
commit
eabd5467f1
2 changed files with 8 additions and 1 deletions
|
|
@ -106,6 +106,13 @@ namespace Dalamud.Interface
|
|||
|
||||
private void DrawUI()
|
||||
{
|
||||
// this is more or less part of what reshade/etc do to avoid having to manually
|
||||
// set the cursor inside the ui
|
||||
// This effectively means that when the ui is hovered, there will be 2 cursors -
|
||||
// the normal one from the game, and the one for ImGui
|
||||
// Doing this here because it's somewhat application-specific behavior
|
||||
ImGui.GetIO().MouseDrawCursor = ImGui.GetIO().WantCaptureMouse;
|
||||
|
||||
ImGui.ShowDemoWindow();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue